home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / codekp12 / codekeep.md_ / codekeep.md / Code Keeper.json
Encoding:
JavaScript Object Notation  |  1994-08-28  |  82.1 KB

  1. {
  2.     "schema": {
  3.         "Group": "Text (25) NOT NULL",
  4.         "Item": "Text (25) NOT NULL",
  5.         "Info": "Memo/Hyperlink (255)"
  6.     },
  7.     "data": [
  8.         {
  9.             "Group": "Database",
  10.             "Item": "dbSelect",
  11.             "Info": "Function dbSelect% (ByVal strDatabaseName$, ByVal strSQL$, ByVal intNumCols%, DataBuff() as Fields)\r\n\r\nStatic intCount%\r\nDim ds As Dynaset\r\nDim db As Database\r\n\r\n'Allows for a maximum of 1000 records\r\nReDim DataBuff(intNumCols, 1000)\r\n\r\nOn Error GoTo ErrHandle\r\n\r\nSet db = OpenDatabase(gstrDatabaseName, True, True)\r\n\r\nstrSQL = \"Select * from [\" & gstrOldPlayerTable & \"] where \"\r\nset ds = db.CreateDynaset(strSQL)\r\nIf ds.EOF Then\r\n    'No data found\r\nElse\r\n    ds.MoveFirst\r\n\tDataBuff(1) = ds\r\nEnd If\r\n\r\nintCount = 0\r\nDo While Not ds.EOF\r\n\tintCount% = intCount+1\r\n\tDataBuff(intCount) = ds\t\r\nLoop\r\n\r\nds.Close\r\ndb.Close\r\n\r\ndbSelect = intCount\r\n\r\nExit Sub\r\n\r\nErrHandle:\r\nMsgBox \"Database Error\", 16, \"Error\"\r\nExit Sub\r\nResume\r\n\r\nEnd Function"
  12.         },
  13.         {
  14.             "Group": "Array",
  15.             "Item": "sArrayIsIn% ",
  16.             "Info": "Function sArrayIsIn% (ByVal strIn$, strArray$())\r\n'Tells if a string is in an array\r\n\r\nStatic intCountList%\r\n    \r\nFor intCountList = LBound(strArray) To UBound(strArray)\r\n    If strArray(intCountList) = strIn Then\r\n        sArrayIsIn = intCountList\r\n        Exit For\r\n    End If\r\nNext intCountList\r\n\r\nEnd Function"
  17.         },
  18.         {
  19.             "Group": "File",
  20.             "Item": "File_IO ",
  21.             "Info": "Sub File_IO (strAction$)\r\n\r\nStatic flgFound%, intCount%, intCount2%\r\n\r\n    flgFound = False\r\n    MainForm.CMDialog1.InitDir = gstrMainDirectory\r\n    MainForm.CMDialog1.Filename = \"*.*\"\r\n    MainForm.CMDialog1.DefaultExt = \"\"\r\n    MainForm.CMDialog1.Filter = \"Text Files (*.TXT)|*.TXT|All Files (*.*)|*.*\"\r\n    MainForm.CMDialog1.FilterIndex = 1\r\n    Select Case strAction\r\n        Case \"DELETE\"\r\n            Do\r\n                MainForm.CMDialog1.Filename = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n                MainForm.CMDialog1.DialogTitle = \"Delete File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    'asdasd\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n                If FileExists(SaveName) Then\r\n                    Res% = MsgBox(\"OK to delete \" & SaveName & \"?\", 52, \"Delete File\")\r\n                Else\r\n                    Res% = 6\r\n                End If\r\n            Loop While Res% <> 6\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName\r\n            Screen.MousePointer = 0\r\n            \r\n        Case \"UPDATE\"\r\n            SaveName = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n            If SaveName = \"\" Then\r\n                MainForm.CMDialog1.DialogTitle = \"Save File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n            End If\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName   'Blank out File\r\n            gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n            Screen.MousePointer = 0\r\n        Case \"SAVEAS\"\r\n            Do\r\n                MainForm.CMDialog1.Filename = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n                MainForm.CMDialog1.DialogTitle = \"Save File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).TradePlan = SaveName\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n                If FileExists(SaveName) Then\r\n                    Res% = MsgBox(\"OK to overwrite existing \" & SaveName & \"?\", 52, \"Save File\")\r\n                Else\r\n                    Res% = 6\r\n                End If\r\n            Loop While Res% <> 6\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName\r\n\t\t\tWriteInfo(SaveName)\r\n            frmMDIChild(Val(ActiveForm.Tag)).Caption = sGetFileName(SaveName)\r\n            For intCount = 1 To gudtMDIChild(Val(ActiveForm.Tag)).NumPanels\r\n                GraphDefArray(CTP, intCount).Caption = frmMDIChild(Val(ActiveForm.Tag)).Caption & \" - \" & \" Graph \" & Format$(intCount)\r\n            Next intCount\r\n            gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n            Screen.MousePointer = 0\r\n        Case \"LOAD\"\r\n            MainForm.CMDialog1.DialogTitle = \"Open File\"\r\n            MainForm.CMDialog1.Action = 1 'Set for file open dialog box\r\n            SaveName = MainForm.CMDialog1.Filename\r\n            If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                Screen.MousePointer = 11\r\n                giActiveChild = GetNewChild()\r\n\t\t\t\tIf giActiveChild > 0 then\r\n\t\t\t\t\t'Open an MDI Child\r\n    \t            gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n\t\t\t\t\tLoadFile giActiveChild\r\n            \t    gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n\t\t\t\tElse\r\n\t\t\t\t\t'No room to open a new form\r\n\t\t\t\tEnd If\r\n                Screen.MousePointer = 0\r\n            End If\r\n\t\tCase Else\r\n\t\t\tMsgBox \"Invalid File I/O call.\"\r\n    End Select\r\nEnd Sub"
  22.         },
  23.         {
  24.             "Group": "File",
  25.             "Item": "FileExists% ",
  26.             "Info": "Function FileExists% (ByVal strFileName$)\r\n\r\nOn Error GoTo ErrHand\r\n\r\nFileExists = Dir$(strFileName) <> \"\"\r\nExit Function\r\n\r\nErrHand:\r\n    FileExists = False\r\n    Resume Next\r\n\r\nEnd Function"
  27.         },
  28.         {
  29.             "Group": "File",
  30.             "Item": "GetFileLoad$ ",
  31.             "Info": "Function GetFileLoad$ (CMDialog As Control, sInitDir$, sCaption$, sDefaultExt$, sFileName$, sFilter$)\r\n\r\nOn Error GoTo GetFileLoadErr\r\n\r\nIf sInitDir <> \"\" Then CMDialog.InitDir = sInitDir\r\nCMDialog.CancelError = True\r\nCMDialog.DialogTitle = sCaption\r\nCMDialog.Filename = sFileName\r\nCMDialog.DefaultExt = sDefaultExt\r\nCMDialog.Filter = sFilter\r\nCMDialog.FilterIndex = 1\r\nCMDialog.Action = DLG_FILE_OPEN\r\n\r\nIf InStr(CMDialog.Filename, \"*\") = 0 And CMDialog.Filename <> \"\" And CMDialog.Filename = UCase$(CMDialog.Filename) Then\r\n    GetFileLoad = CMDialog.Filename\r\nEnd If\r\n\r\nExit Function\r\n\r\nGetFileLoadErr:\r\nGetFileLoad = \"\"\r\nExit Function\r\nResume\r\n\r\nEnd Function"
  32.         },
  33.         {
  34.             "Group": "File",
  35.             "Item": "GetFileName$ ",
  36.             "Info": "Function GetFileName$ (ByVal strFileName$)\r\n'Strip off directory and .DBF for use in table joining queries\r\n\r\nStatic intPosition%, flgSlashFound%, intTemp%\r\n\r\nIf InStr(Right$(strFileName, 4), \".\") > 0 then\r\n'If there is a tail on the file name\r\n\tstrFileName = Left$(strFileName, Len(strFileName) - 4)\r\nEnd If\r\n\r\nintPosition = 1\r\n\r\nDo\r\n    flgSlashFound = False\r\n    intTemp = InStr(intPosition, strFileName, \"\\\")\r\n    flgSlashFound = Not intTemp = 0\r\n    If flgSlashFound Then intPosition = intTemp + 1\r\nLoop While flgSlashFound\r\n\r\nGetFileName = Right$(strFileName, Len(strFileName) - intPosition + 1)\r\n\r\nEnd Function"
  37.         },
  38.         {
  39.             "Group": "List Box",
  40.             "Item": "Is in List",
  41.             "Info": "Function cListIsIn% (lstListBox As Control, ByVal strIn$)\r\n\r\nStatic flgTemp%, intCountList%\r\n\r\nflgTemp = False\r\nFor intCountList = 0 To lstListBox.ListCount - 1\r\n    If lstListBox.List(intCountList) = strIn Then\r\n        flgTemp = True\r\n        Exit For\r\n    End If\r\nNext intCountList\r\ncListIsIn = flgTemp\r\n\r\nEnd Function"
  42.         },
  43.         {
  44.             "Group": "List Box",
  45.             "Item": "Number Selected",
  46.             "Info": "Function cListNumSelected% (lstListBox As Control)\r\n'Returns the number of items selected in a list box\r\n\r\nStatic intTemp%, intCountList%\r\n\r\nintTemp = 0\r\nFor intCountList = 1 To lstListBox.ListCount\r\n    If lstListBox.Selected(intCountList - 1) Then\r\n        intTemp = intTemp + 1\r\n    End If\r\nNext intCountList\r\n\r\ncListNumSelected = intTemp\r\n\r\nEnd Function"
  47.         },
  48.         {
  49.             "Group": "List Box",
  50.             "Item": "Set List Box ",
  51.             "Info": "Sub cListSet (lstBox As Control, ByVal strNewText$)\r\n'Sets a list box to the given text if it is in the list\r\n'If not it un-sets the list box\r\n\r\nStatic intCount%, flgFound%\r\n    \r\nflgFound = False\r\nintCount = 0\r\ngflgClickBypass = True\r\n\r\nDo While intCount < lstBox.ListCount And flgFound = False\r\n    intCount = intCount + 1\r\n    If lstBox.List(intCount - 1) = strNewText Then\r\n        lstBox.ListIndex = intCount - 1\r\n        flgFound = True\r\n    End If\r\nLoop\r\n\r\nIf flgFound = False Then\r\n    lstBox.ListIndex = -1\r\nEnd If\r\n\r\ngflgClickBypass = False\r\n\r\nEnd Sub"
  52.         },
  53.         {
  54.             "Group": "Math",
  55.             "Item": "IsBinaryIncluded%",
  56.             "Info": "Function IsBinaryIncluded%(intIn%, intPlace%)\r\n\r\nIf ((2 ^ intPlace) And intIn) Then\r\n\tIsBinaryIncluded = True\r\nEnd If\r\n\r\nEnd Function"
  57.         },
  58.         {
  59.             "Group": "Math",
  60.             "Item": "SetBinaryIncluded%",
  61.             "Info": "Function SetBinaryIncluded%(intIn%, intPlace%, flgIn%)\r\n\r\nIf IsBinaryIncluded(intIn, intPlace) and Not flgIn Then\r\n    intIn = intIn + 2 ^ intPlace\r\nElseIf Not IsBinaryIncluded(intIn, intPlace) and flgIn Then\r\n    intIn = intIn - 2 ^ intPlace\r\nEnd If\r\n\r\nEnd Function"
  62.         },
  63.         {
  64.             "Group": "MDI",
  65.             "Item": "(General)",
  66.             "Info": "MAXCHILDWINDOWS = 10\r\n\r\nType MDIChildType\r\n    flgInUse As Integer\r\n    flgSaved As Integer\r\n\tstrFileName as String\r\n    hWnd As Integer\r\nEnd Type\r\nGlobal gudtMDIChild(MAXCHILDWINDOWS) As MDIChildType\r\n\r\nGlobal gintActiveChild%\r\n\r\nGlobal frmCodeChild(MAXCHILDWINDOWS) As New frmCode"
  67.         },
  68.         {
  69.             "Group": "MDI",
  70.             "Item": "File_IO ",
  71.             "Info": "Sub File_IO (strAction$)\r\n\r\nStatic flgFound%, intCount%, intCount2%\r\n\r\n    flgFound = False\r\n    MainForm.CMDialog1.InitDir = gstrMainDirectory\r\n    MainForm.CMDialog1.Filename = \"*.*\"\r\n    MainForm.CMDialog1.DefaultExt = \"\"\r\n    MainForm.CMDialog1.Filter = \"Text Files (*.TXT)|*.TXT|All Files (*.*)|*.*\"\r\n    MainForm.CMDialog1.FilterIndex = 1\r\n    Select Case strAction\r\n        Case \"DELETE\"\r\n            Do\r\n                MainForm.CMDialog1.Filename = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n                MainForm.CMDialog1.DialogTitle = \"Delete File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    'asdasd\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n                If FileExists(SaveName) Then\r\n                    Res% = MsgBox(\"OK to delete \" & SaveName & \"?\", 52, \"Delete File\")\r\n                Else\r\n                    Res% = 6\r\n                End If\r\n            Loop While Res% <> 6\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName\r\n            Screen.MousePointer = 0\r\n            \r\n        Case \"UPDATE\"\r\n            SaveName = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n            If SaveName = \"\" Then\r\n                MainForm.CMDialog1.DialogTitle = \"Save File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n            End If\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName   'Blank out File\r\n\t\t\tSaveFile SaveName, Val(ActiveForm.Tag) \r\n            gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n            Screen.MousePointer = 0\r\n        Case \"SAVEAS\"\r\n            Do\r\n                MainForm.CMDialog1.Filename = gudtMDIChild(Val(ActiveForm.Tag)).strFileName\r\n                MainForm.CMDialog1.DialogTitle = \"Save File\"\r\n                MainForm.CMDialog1.Action = 2 'Set for file save dialog box\r\n                SaveName = MainForm.CMDialog1.Filename\r\n                If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n                    gudtMDIChild(Val(ActiveForm.Tag)).TradePlan = SaveName\r\n                Else\r\n                    Exit Sub\r\n                End If\r\n                If FileExists(SaveName) Then\r\n                    Res% = MsgBox(\"OK to overwrite existing \" & SaveName & \"?\", 52, \"Save File\")\r\n                Else\r\n                    Res% = 6\r\n                End If\r\n            Loop While Res% <> 6\r\n            Screen.MousePointer = 11\r\n            If FileExists(SaveName) Then Kill SaveName\r\n\t\t\tSaveFile SaveName, Val(ActiveForm.Tag)\r\n            frmMDIChild(Val(ActiveForm.Tag)).Caption = sGetFileName(SaveName)\r\n            gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n            Screen.MousePointer = 0\r\n        Case \"LOAD\"\r\n            MainForm.CMDialog1.DialogTitle = \"Open File\"\r\n            MainForm.CMDialog1.Action = 1 'Set for file open dialog box\r\n            SaveName = MainForm.CMDialog1.Filename\r\n            If InStr(SaveName, \"*\") = 0 And SaveName <> \"\" And SaveName = UCase$(SaveName) Then\r\n                Screen.MousePointer = 11\r\n                giActiveChild = GetNewChild()\r\n\t\t\t\tIf giActiveChild > 0 then\r\n\t\t\t\t\t'Open an MDI Child\r\n    \t            gudtMDIChild(Val(ActiveForm.Tag)).strFileName = SaveName\r\n\t\t\t\t\tLoadFile SaveName, giActiveChild\r\n            \t    gudtMDIChild(Val(ActiveForm.Tag)).flgSaved = True\r\n\t\t\t\tElse\r\n\t\t\t\t\t'No room to open a new form\r\n\t\t\t\t\tMsgBox \"Too many windows open already.\"\r\n\t\t\t\tEnd If\r\n                Screen.MousePointer = 0\r\n            End If\r\n\t\tCase Else\r\n\t\t\tMsgBox \"Invalid File I/O call.\"\r\n    End Select\r\nEnd Sub"
  72.         },
  73.         {
  74.             "Group": "MDI",
  75.             "Item": "GetNewChild% ",
  76.             "Info": "Function GetNewChild% ()\r\n\r\nStatic intCount%, flgFound%\r\n\r\nflgFound = False\r\n\r\nFor intCount = 1 To MAXCHILDWINDOWS\r\n    If gflgFormInUse(intCount) = False Then\r\n        Exit For\r\n    End If\r\nNext intCount\r\n\r\nif flgFound then\r\n\tGetNewChild = intCount\r\nElse\r\n\tGetNewChild = 0\r\nEnd If\r\n\r\nEnd Sub"
  77.         },
  78.         {
  79.             "Group": "MDI",
  80.             "Item": "mnuFileNew_Click ",
  81.             "Info": "Sub mnuFileNew_Click ()\r\n\r\nStatic intCount%, flgFound%\r\n\r\nflgFound = False\r\n\r\nFor intCount = 1 To MAXCHILDWINDOWS\r\n    If gflgFormInUse(intCount) = False Then\r\n        frmCodeChild(intCount).Caption = \"Untitled\" & intCount\r\n        frmCodeChild(intCount).Tag = Format$(intCount)\r\n        gudtMDIChild(intCount).flgInUse = True\r\n        gudtMDIChild(intCount).flgSaved = -2\r\n        frmCodeChild(intCount).Show\r\n        flgFound = True\r\n        Exit For\r\n    End If\r\nNext intCount\r\n\r\nIf Not flgFound Then MsgBox MAXCHILDWINDOWS & \" windows already open.\"\r\n\r\nEnd Sub"
  82.         },
  83.         {
  84.             "Group": "MDI",
  85.             "Item": "ChildForm_Unload ",
  86.             "Info": "Sub ChildForm_Unload (Cancel%)\r\n'Make sure the form is saved before quiting\r\n\r\nIf gflgMDIChild(Val(Me.Tag)).flgInUse And gflgMDIChild(Val(Me.Tag)).flgSaved <> -1 Then\r\n    Select Case MsgBox(\"Save changes to \" & gflgMDIChild(Val(Me.Tag)).Caption & \"?\", 51, \"Exit\")\r\n        Case 2  'Cancel\r\n            Cancel = True\r\n            Exit Sub\r\n        Case 6  'Yes\r\n            gintActiveChild = intCount\r\n            If gflgMDIChild(Val(Me.Tag)).flgSaved = -2 Then\r\n                File_IO \"SAVEAS\", Val(Me.Tag) 'New file to save\r\n            Else\r\n                File_IO \"UPDATE\", Val(Me.Tag)\r\n            End If\r\n        Case 7  'No\r\n    End Select\r\nEnd If\r\n\r\nEnd Sub"
  87.         },
  88.         {
  89.             "Group": "MDI",
  90.             "Item": "MDIForm_Unload ",
  91.             "Info": "Sub MDIForm_Unload (Cancel%)\r\n'Make sure all children are saved before quiting\r\n\r\nStatic intCount%\r\n\r\nFor intCount = 1 To MAXCHILDWINDOWS\r\n    If gflgMDIChild(intCount).flgInUse And gflgMDIChild(intCount).flgSaved <> -1 Then\r\n\t    Select Case MsgBox(\"Save changes to \" & gflgMDIChild(intCount).Caption & \"?\", 51, \"Exit\")\r\n\t\t\tCase 2  'Cancel\r\n\t            Cancel = True\r\n\t\t\t    Exit Sub\r\n\t\t\tCase 6  'Yes\r\n\t\t\t\tgintActiveChild = intCount\r\n\t\t\t    If gflgMDIChild(intCount).flgSaved = -2 Then\r\n\t\t\t\t\tFile_IO \"SAVEAS\", intCount 'New file to save\r\n\t\t\t    Else\r\n\t\t\t\t\tFile_IO \"UPDATE\", intCount\r\n\t\t\t    End If\r\n\t\t\tCase 7  'No\r\n\t    End Select\r\n\tEnd If\r\nNext I\r\n\r\nEnd\r\n\r\nEnd Sub"
  92.         },
  93.         {
  94.             "Group": "Menu",
  95.             "Item": "mnuEditCopy_Click ",
  96.             "Info": "Sub mnuEditCopy_Click ()\r\n\r\nOn Error Resume Next\r\n\r\nIf ActiveForm.ActiveControl.SelText <> \"\" then\r\n\tClipboard.SetText ActiveForm.ActiveControl.SelText\r\nEnd If\r\n\r\nEnd Sub"
  97.         },
  98.         {
  99.             "Group": "Menu",
  100.             "Item": "mnuEditCut_Click ",
  101.             "Info": "Sub mnuEditCut_Click ()\r\n\r\nOn Error Resume Next\r\n\r\nIf ActiveForm.ActiveControl.SelText <> \"\" then\r\n\tClipboard.SetText ActiveForm.ActiveControl.SelText\r\n\tActiveForm.ActiveControl.SelText = \"\"\r\nEnd If\r\n\r\nEnd Sub"
  102.         },
  103.         {
  104.             "Group": "Menu",
  105.             "Item": "mnuEditDelete_Click ",
  106.             "Info": "Sub mnuEditDelete_Click ()\r\n\r\nOn Error Resume Next\r\n\r\nActiveForm.ActiveControl.SelText = \"\"\r\n\r\nEnd Sub"
  107.         },
  108.         {
  109.             "Group": "Menu",
  110.             "Item": "mnuEditPaste_Click ",
  111.             "Info": "Sub mnuEditPaste_Click ()\r\n\r\nOn Error Resume Next\r\n\r\nActiveForm.ActiveControl.SelText = Clipboard.GetText()\r\n\r\nEnd Sub"
  112.         },
  113.         {
  114.             "Group": "Printing",
  115.             "Item": "(General)",
  116.             "Info": "Declare Function GetPrivateProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnedString$, ByVal nSize%, ByVal lpFileName$)\r\nDeclare Function WritePrivateProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpString$, ByVal lplFileName$)\r\nDeclare Function GetPrivateProfileInt% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal nDefault%, ByVal lpFileName$)\r\nDeclare Function GetProfileInt% Lib \"Kernel\" (ByVal lpAppName$, ByVal lpKeyName$, ByVal nDefault%)\r\nDeclare Function GetProfileString% Lib \"Kernel\" (ByVal lpAppName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnedString$, ByVal nSize%)\r\nDeclare Function WriteProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpString$)\r\nDeclare Function GetWindowsDirectory% Lib \"Kernel\" (ByVal lpBuffer$, ByVal nSize%)\r\nDeclare Function GetSystemDirectory% Lib \"Kernel\" (ByVal lpBuffer$, ByVal nSize%)"
  117.         },
  118.         {
  119.             "Group": "Printing",
  120.             "Item": "PrintTextFile ",
  121.             "Info": "Sub PrintTextFile (ByVal TextFile$, ByVal intTabWidth%)\r\n\r\nStatic I%\r\nStatic CurrentWord$\r\n\r\n'Set the font here\r\n\r\nArrayPointer = 1\r\nCols(1) = 2000\r\nDefineColumns 2\r\nPrinter.FontName = gudtPrintOptions.PrintingFont\r\nPrintPageNumber\r\nFor I = 1 To Len(TextFile)\r\n    CurrentWord = \"\"\r\n    If Mid$(TextFile, I, 2) = Chr$(13) & Chr$(10) Then\r\n    'Program prints its own carriage returns\r\n        CarriageReturn\r\n        I = I + 2\r\n    End If\r\n    If Printer.CurrentX < gudtPrintOptions.LeftMargin Then Printer.CurrentX = gudtPrintOptions.LeftMargin\r\n    'If Printer.CurrentX + Len(PrintString) > gudtPrintOptions.RightMargin Then Printer.Print\r\n    If Mid$(TextFile, I, 1) = chr(9) Then\r\n        Printer.Print Spc(intTabWidth);\r\n    Else\r\n        Printer.Print Mid$(TextFile, I, 1);\r\n    End If\r\nNext I\r\nPrinter.EndDoc\r\n\r\nEnd Sub"
  122.         },
  123.         {
  124.             "Group": "Printing",
  125.             "Item": "SetCopyCount ",
  126.             "Info": "Sub SetCopyCount (ByVal intNumCopies%)\r\n\r\n'Sets the number of copies for the printer setup\r\n\r\nStatic X%, Y%, Actual%\r\n\r\nX = Escape(Printer.hDC, 17, Len(Y), intNumCopies, Actual)\r\n\r\nEnd Sub"
  127.         },
  128.         {
  129.             "Group": "Printing",
  130.             "Item": "SetFont ",
  131.             "Info": "Sub SetFont (ByVal SizeofFont%, ByVal RegBoldItal%)\r\n'Sets the current font, size, and style\r\n\r\n    If SizeofFont > -1 Then Printer.FontSize = SizeofFont\r\n    gudtPrintOptions.Spacing = Int(Printer.FontSize * gudtPrintOptions.SpaceMultiplier)\r\n    Select Case RegBoldItal\r\n        Case 1  'Normal\r\n            Printer.FontItalic = False\r\n            Printer.FontBold = False\r\n            Printer.FontUnderline = False\r\n        Case 2  'Bold\r\n            Printer.FontItalic = False\r\n            Printer.FontBold = True\r\n            Printer.FontUnderline = False\r\n        Case 3  'Italic\r\n            Printer.FontItalic = True\r\n            Printer.FontBold = False\r\n            Printer.FontUnderline = False\r\n        Case 4  'Bold & Italic\r\n            Printer.FontItalic = True\r\n            Printer.FontBold = True\r\n            Printer.FontUnderline = False\r\n        Case 5  'Underline\r\n            Printer.FontItalic = False\r\n            Printer.FontBold = False\r\n            Printer.FontUnderline = True\r\n    End Select\r\n\r\nEnd Sub"
  132.         },
  133.         {
  134.             "Group": "Text Box",
  135.             "Item": "SelectAll ",
  136.             "Info": "Sub SelectAll (TextBox As Control)\r\n'Selects all text in a text box\r\n\r\nTextBox.SelStart = 0\r\nTextBox.SelLength = Len(TextBox.Text)\r\n\r\nEnd Sub"
  137.         },
  138.         {
  139.             "Group": "Constants",
  140.             "Item": "(General)",
  141.             "Info": "''''''''''''''''''''''''''''\r\n' Visual Basic global constant file. This file can be loaded\r\n' into a code module.\r\n'\r\n' Some constants are commented out because they have\r\n' duplicates (e.g., NONE appears several places).\r\n'\r\n' If you are updating a Visual Basic application written with\r\n' an older version, you should replace your global constants\r\n' with the constants in this file.\r\n'\r\n'''''''''''''''''''''''''''''"
  142.         },
  143.         {
  144.             "Group": "Constants",
  145.             "Item": "Keys",
  146.             "Info": "' Key Codes\r\nGlobal Const KEY_LBUTTON = &H1\r\nGlobal Const KEY_RBUTTON = &H2\r\nGlobal Const KEY_CANCEL = &H3\r\nGlobal Const KEY_MBUTTON = &H4    ' NOT contiguous with L & RBUTTON\r\nGlobal Const KEY_BACK = &H8\r\nGlobal Const KEY_TAB = &H9\r\nGlobal Const KEY_CLEAR = &HC\r\nGlobal Const KEY_RETURN = &HD\r\nGlobal Const KEY_SHIFT = &H10\r\nGlobal Const KEY_CONTROL = &H11\r\nGlobal Const KEY_MENU = &H12\r\nGlobal Const KEY_PAUSE = &H13\r\nGlobal Const KEY_CAPITAL = &H14\r\nGlobal Const KEY_ESCAPE = &H1B\r\nGlobal Const KEY_SPACE = &H20\r\nGlobal Const KEY_PRIOR = &H21\r\nGlobal Const KEY_NEXT = &H22\r\nGlobal Const KEY_END = &H23\r\nGlobal Const KEY_HOME = &H24\r\nGlobal Const KEY_LEFT = &H25\r\nGlobal Const KEY_UP = &H26\r\nGlobal Const KEY_RIGHT = &H27\r\nGlobal Const KEY_DOWN = &H28\r\nGlobal Const KEY_SELECT = &H29\r\nGlobal Const KEY_PRINT = &H2A\r\nGlobal Const KEY_EXECUTE = &H2B\r\nGlobal Const KEY_SNAPSHOT = &H2C\r\nGlobal Const KEY_INSERT = &H2D\r\nGlobal Const KEY_DELETE = &H2E\r\nGlobal Const KEY_HELP = &H2F\r\n\r\n' KEY_A thru KEY_Z are the same as their ASCII equivalents: 'A' thru 'Z'\r\n' KEY_0 thru KEY_9 are the same as their ASCII equivalents: '0' thru '9'\r\n\r\nGlobal Const KEY_NUMPAD0 = &H60\r\nGlobal Const KEY_NUMPAD1 = &H61\r\nGlobal Const KEY_NUMPAD2 = &H62\r\nGlobal Const KEY_NUMPAD3 = &H63\r\nGlobal Const KEY_NUMPAD4 = &H64\r\nGlobal Const KEY_NUMPAD5 = &H65\r\nGlobal Const KEY_NUMPAD6 = &H66\r\nGlobal Const KEY_NUMPAD7 = &H67\r\nGlobal Const KEY_NUMPAD8 = &H68\r\nGlobal Const KEY_NUMPAD9 = &H69\r\nGlobal Const KEY_MULTIPLY = &H6A\r\nGlobal Const KEY_ADD = &H6B\r\nGlobal Const KEY_SEPARATOR = &H6C\r\nGlobal Const KEY_SUBTRACT = &H6D\r\nGlobal Const KEY_DECIMAL = &H6E\r\nGlobal Const KEY_DIVIDE = &H6F\r\nGlobal Const KEY_F1 = &H70\r\nGlobal Const KEY_F2 = &H71\r\nGlobal Const KEY_F3 = &H72\r\nGlobal Const KEY_F4 = &H73\r\nGlobal Const KEY_F5 = &H74\r\nGlobal Const KEY_F6 = &H75\r\nGlobal Const KEY_F7 = &H76\r\nGlobal Const KEY_F8 = &H77\r\nGlobal Const KEY_F9 = &H78\r\nGlobal Const KEY_F10 = &H79\r\nGlobal Const KEY_F11 = &H7A\r\nGlobal Const KEY_F12 = &H7B\r\nGlobal Const KEY_F13 = &H7C\r\nGlobal Const KEY_F14 = &H7D\r\nGlobal Const KEY_F15 = &H7E\r\nGlobal Const KEY_F16 = &H7F\r\n\r\nGlobal Const KEY_NUMLOCK = &H90\r\n"
  147.         },
  148.         {
  149.             "Group": "Constants",
  150.             "Item": "Colors",
  151.             "Info": "' Colors\r\nGlobal Const BLACK = &H0&\r\nGlobal Const RED = &HFF&\r\nGlobal Const GREEN = &HFF00&\r\nGlobal Const YELLOW = &HFFFF&\r\nGlobal Const BLUE = &HFF0000\r\nGlobal Const MAGENTA = &HFF00FF\r\nGlobal Const CYAN = &HFFFF00\r\nGlobal Const WHITE = &HFFFFFF\r\n\r\n' System Colors\r\nGlobal Const SCROLL_BARS = &H80000000           ' Scroll-bars gray area.\r\nGlobal Const DESKTOP = &H80000001               ' Desktop.\r\nGlobal Const ACTIVE_TITLE_BAR = &H80000002      ' Active window caption.\r\nGlobal Const INACTIVE_TITLE_BAR = &H80000003    ' Inactive window caption.\r\nGlobal Const MENU_BAR = &H80000004              ' Menu background.\r\nGlobal Const WINDOW_BACKGROUND = &H80000005     ' Window background.\r\nGlobal Const WINDOW_FRAME = &H80000006          ' Window frame.\r\nGlobal Const MENU_TEXT = &H80000007             ' Text in menus.\r\nGlobal Const WINDOW_TEXT = &H80000008           ' Text in windows.\r\nGlobal Const TITLE_BAR_TEXT = &H80000009        ' Text in caption, size box, scroll-bar arrow box..\r\nGlobal Const ACTIVE_BORDER = &H8000000A         ' Active window border.\r\nGlobal Const INACTIVE_BORDER = &H8000000B       ' Inactive window border.\r\nGlobal Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.\r\nGlobal Const HIGHLIGHT = &H8000000D             ' Items selected item in a control.\r\nGlobal Const HIGHLIGHT_TEXT = &H8000000E        ' Text of item selected in a control.\r\nGlobal Const BUTTON_FACE = &H8000000F           ' Face shading on command buttons.\r\nGlobal Const BUTTON_SHADOW = &H80000010         ' Edge shading on command buttons.\r\nGlobal Const GRAY_TEXT = &H80000011             ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.\r\nGlobal Const BUTTON_TEXT = &H80000012           ' Text on push buttons.\r\n"
  152.         },
  153.         {
  154.             "Group": "Constants",
  155.             "Item": "Alignment",
  156.             "Info": "' Alignment\r\nGlobal Const LEFT_JUSTIFY = 0  ' 0 - Left Justify\r\nGlobal Const RIGHT_JUSTIFY = 1 ' 1 - Right Justify\r\nGlobal Const CENTER = 2        ' 2 - Center\r\n"
  157.         },
  158.         {
  159.             "Group": "Constants",
  160.             "Item": "Border Styles",
  161.             "Info": "' BorderStyle (form)\r\n'Global Const NONE = 0          ' 0 - None\r\nGlobal Const FIXED_SINGLE = 1   ' 1 - Fixed Single\r\nGlobal Const SIZABLE = 2        ' 2 - Sizable (Forms only)\r\nGlobal Const FIXED_DOUBLE = 3   ' 3 - Fixed Double (Forms only)\r\n\r\n' BorderStyle (Shape and Line)\r\n'Global Const TRANSPARENT = 0    '0 - Transparent\r\n'Global Const SOLID = 1          '1 - Solid\r\n'Global Const DASH = 2         ' 2 - Dash\r\n'Global Const DOT = 3          ' 3 - Dot\r\n'Global Const DASH_DOT = 4     ' 4 - Dash-Dot\r\n'Global Const DASH_DOT_DOT = 5 ' 5 - Dash-Dot-Dot\r\n'Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid\r\n"
  162.         },
  163.         {
  164.             "Group": "Constants",
  165.             "Item": "MousePointer",
  166.             "Info": "' MousePointer\r\nGlobal Const DEFAULT = 0        ' 0 - Default\r\nGlobal Const ARROW = 1          ' 1 - Arrow\r\nGlobal Const CROSSHAIR = 2      ' 2 - Cross\r\nGlobal Const IBEAM = 3          ' 3 - I-Beam\r\nGlobal Const ICON_POINTER = 4   ' 4 - Icon\r\nGlobal Const SIZE_POINTER = 5   ' 5 - Size\r\nGlobal Const SIZE_NE_SW = 6     ' 6 - Size NE SW\r\nGlobal Const SIZE_N_S = 7       ' 7 - Size N S\r\nGlobal Const SIZE_NW_SE = 8     ' 8 - Size NW SE\r\nGlobal Const SIZE_W_E = 9       ' 9 - Size W E\r\nGlobal Const UP_ARROW = 10      ' 10 - Up Arrow\r\nGlobal Const HOURGLASS = 11     ' 11 - Hourglass\r\nGlobal Const NO_DROP = 12       ' 12 - No drop"
  167.         },
  168.         {
  169.             "Group": "Constants",
  170.             "Item": "Drag",
  171.             "Info": "' DragOver\r\nGlobal Const ENTER = 0\r\nGlobal Const LEAVE = 1\r\nGlobal Const OVER = 2\r\n\r\n' Drag (controls)\r\nGlobal Const CANCEL = 0\r\nGlobal Const BEGIN_DRAG = 1\r\nGlobal Const END_DRAG = 2\r\n\r\n' DragMode\r\nGlobal Const MANUAL = 0    ' 0 - Manual\r\nGlobal Const AUTOMATIC = 1 ' 1 - Automatic\r\n"
  172.         },
  173.         {
  174.             "Group": "Constants",
  175.             "Item": "Draw",
  176.             "Info": "' DrawMode\r\nGlobal Const BLACKNESS = 1      ' 1 - Blackness\r\nGlobal Const NOT_MERGE_PEN = 2  ' 2 - Not Merge Pen\r\nGlobal Const MASK_NOT_PEN = 3   ' 3 - Mask Not Pen\r\nGlobal Const NOT_COPY_PEN = 4   ' 4 - Not Copy Pen\r\nGlobal Const MASK_PEN_NOT = 5   ' 5 - Mask Pen Not\r\nGlobal Const INVERT = 6         ' 6 - Invert\r\nGlobal Const XOR_PEN = 7        ' 7 - Xor Pen\r\nGlobal Const NOT_MASK_PEN = 8   ' 8 - Not Mask Pen\r\nGlobal Const MASK_PEN = 9       ' 9 - Mask Pen\r\nGlobal Const NOT_XOR_PEN = 10   ' 10 - Not Xor Pen\r\nGlobal Const NOP = 11           ' 11 - Nop\r\nGlobal Const MERGE_NOT_PEN = 12 ' 12 - Merge Not Pen\r\nGlobal Const COPY_PEN = 13      ' 13 - Copy Pen\r\nGlobal Const MERGE_PEN_NOT = 14 ' 14 - Merge Pen Not\r\nGlobal Const MERGE_PEN = 15     ' 15 - Merge Pen\r\nGlobal Const WHITENESS = 16     ' 16 - Whiteness\r\n\r\n' DrawStyle\r\nGlobal Const SOLID = 0        ' 0 - Solid\r\nGlobal Const DASH = 1         ' 1 - Dash\r\nGlobal Const DOT = 2          ' 2 - Dot\r\nGlobal Const DASH_DOT = 3     ' 3 - Dash-Dot\r\nGlobal Const DASH_DOT_DOT = 4 ' 4 - Dash-Dot-Dot\r\nGlobal Const INVISIBLE = 5    ' 5 - Invisible\r\nGlobal Const INSIDE_SOLID = 6 ' 6 - Inside Solid\r\n\r\n' FillStyle\r\n' Global Const SOLID = 0           ' 0 - Solid\r\nGlobal Const TRANSPARENT = 1       ' 1 - Transparent\r\nGlobal Const HORIZONTAL_LINE = 2   ' 2 - Horizontal Line\r\nGlobal Const VERTICAL_LINE = 3     ' 3 - Vertical Line\r\nGlobal Const UPWARD_DIAGONAL = 4   ' 4 - Upward Diagonal\r\nGlobal Const DOWNWARD_DIAGONAL = 5 ' 5 - Downward Diagonal\r\nGlobal Const CROSS = 6             ' 6 - Cross\r\nGlobal Const DIAGONAL_CROSS = 7    ' 7 - Diagonal Cross\r\n"
  177.         },
  178.         {
  179.             "Group": "Constants",
  180.             "Item": "Message Box",
  181.             "Info": "' MsgBox parameters\r\nGlobal Const MB_OK = 0                 ' OK button only\r\nGlobal Const MB_OKCANCEL = 1           ' OK and Cancel buttons\r\nGlobal Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons\r\nGlobal Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons\r\nGlobal Const MB_YESNO = 4              ' Yes and No buttons\r\nGlobal Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons\r\n\r\nGlobal Const MB_ICONSTOP = 16          ' Critical message\r\nGlobal Const MB_ICONQUESTION = 32      ' Warning query\r\nGlobal Const MB_ICONEXCLAMATION = 48   ' Warning message\r\nGlobal Const MB_ICONINFORMATION = 64   ' Information message\r\n\r\nGlobal Const MB_APPLMODAL = 0          ' Application Modal Message Box\r\nGlobal Const MB_DEFBUTTON1 = 0         ' First button is default\r\nGlobal Const MB_DEFBUTTON2 = 256       ' Second button is default\r\nGlobal Const MB_DEFBUTTON3 = 512       ' Third button is default\r\nGlobal Const MB_SYSTEMMODAL = 4096      'System Modal\r\n\r\n' MsgBox return values\r\nGlobal Const IDOK = 1                  ' OK button pressed\r\nGlobal Const IDCANCEL = 2              ' Cancel button pressed\r\nGlobal Const IDABORT = 3               ' Abort button pressed\r\nGlobal Const IDRETRY = 4               ' Retry button pressed\r\nGlobal Const IDIGNORE = 5              ' Ignore button pressed\r\nGlobal Const IDYES = 6                 ' Yes button pressed\r\nGlobal Const IDNO = 7                  ' No button pressed\r\n"
  182.         },
  183.         {
  184.             "Group": "Constants",
  185.             "Item": "OLE",
  186.             "Info": "'OLE Client Control\r\n'Actions\r\nGlobal Const OLE_CREATE_EMBED = 0\r\nGlobal Const OLE_CREATE_NEW = 0           'from ole1 control\r\nGlobal Const OLE_CREATE_LINK = 1\r\nGlobal Const OLE_CREATE_FROM_FILE = 1     'from ole1 control\r\nGlobal Const OLE_COPY = 4\r\nGlobal Const OLE_PASTE = 5\r\nGlobal Const OLE_UPDATE = 6\r\nGlobal Const OLE_ACTIVATE = 7\r\nGlobal Const OLE_CLOSE = 9\r\nGlobal Const OLE_DELETE = 10\r\nGlobal Const OLE_SAVE_TO_FILE = 11\r\nGlobal Const OLE_READ_FROM_FILE = 12\r\nGlobal Const OLE_INSERT_OBJ_DLG = 14\r\nGlobal Const OLE_PASTE_SPECIAL_DLG = 15\r\nGlobal Const OLE_FETCH_VERBS = 17\r\nGlobal Const OLE_SAVE_TO_OLE1FILE = 18\r\n\r\n'OLEType\r\nGlobal Const OLE_LINKED = 0\r\nGlobal Const OLE_EMBEDDED = 1\r\nGlobal Const OLE_NONE = 3\r\n\r\n'OLETypeAllowed\r\nGlobal Const OLE_EITHER = 2\r\n\r\n'UpdateOptions\r\nGlobal Const OLE_AUTOMATIC = 0\r\nGlobal Const OLE_FROZEN = 1\r\nGlobal Const OLE_MANUAL = 2\r\n\r\n'AutoActivate modes\r\n'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that\r\n'support \"inside-out\" activation.  See related Verb notes below.\r\nGlobal Const OLE_ACTIVATE_MANUAL = 0\r\nGlobal Const OLE_ACTIVATE_GETFOCUS = 1\r\nGlobal Const OLE_ACTIVATE_DOUBLECLICK = 2\r\n\r\n'SizeModes\r\nGlobal Const OLE_SIZE_CLIP = 0\r\nGlobal Const OLE_SIZE_STRETCH = 1\r\nGlobal Const OLE_SIZE_AUTOSIZE = 2\r\n\r\n'DisplayTypes\r\nGlobal Const OLE_DISPLAY_CONTENT = 0\r\nGlobal Const OLE_DISPLAY_ICON = 1\r\n\r\n'Update Event Constants\r\nGlobal Const OLE_CHANGED = 0\r\nGlobal Const OLE_SAVED = 1\r\nGlobal Const OLE_CLOSED = 2\r\nGlobal Const OLE_RENAMED = 3\r\n\r\n'Special Verb Values\r\nGlobal Const VERB_PRIMARY = 0\r\nGlobal Const VERB_SHOW = -1\r\nGlobal Const VERB_OPEN = -2\r\nGlobal Const VERB_HIDE = -3\r\nGlobal Const VERB_INPLACEUIACTIVATE = -4\r\nGlobal Const VERB_INPLACEACTIVATE = -5\r\n'The last two verbs are for objects that support \"inside-out\" activation,\r\n'meaning they can be edited in-place, and that they support being left\r\n'in-place-active even when the input focus moves to another control or form.\r\n'These objects actually have 2 levels of being active.  \"InPlace Active\"\r\n'means that the object is ready for the user to click inside it and start\r\n'working with it.  \"In-Place UI-Active\" means that, in addition, if the object\r\n'has any other UI associated with it, such as floating palette windows,\r\n'that those windows are visible and ready for use.  Any number of objects\r\n'can be \"In-Place Active\" at a time, although only one can be \r\n'\"InPlace UI-Active\".  \r\n\r\n'You can cause an object to move to either one of states programmatically by \r\n'setting the Verb property to the appropriate verb and setting \r\n'Action=OLE_ACTIVATE.  \r\n\r\n'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will \r\n'automatically be put into \"InPlace UI-Active\" state when the user clicks\r\n'on or tabs into the control.\r\n\r\n'VerbFlag Bit Masks \r\nGlobal Const VERBFLAG_GRAYED = &H1\r\nGlobal Const VERBFLAG_DISABLED = &H2\r\nGlobal Const VERBFLAG_CHECKED = &H8\r\nGlobal Const VERBFLAG_SEPARATOR = &H800\r\n\r\n'MiscFlag Bits - Or these together as desired for special behaviors\r\n\r\n'MEMSTORAGE causes the control to use memory to store the object while\r\n'           it is loaded.  This is faster than the default (disk-tempfile),\r\n'           but can consume a lot of memory for objects whose data takes\r\n'           up a lot of space, such as the bitmap for a paint program.\r\nGlobal Const OLE_MISCFLAG_MEMSTORAGE = &H1\r\n\r\n'DISABLEINPLACE overrides the control's default behavior of allowing \r\n'           in-place activation for objects that support it.  If you\r\n'           are having problems activating an object inplace, you can\r\n'           force it to always activate in a separate window by setting this\r\n'           bit\r\nGlobal Const OLE_MISCFLAG_DISABLEINPLACE = &H2\r\n"
  187.         },
  188.         {
  189.             "Group": "Constants",
  190.             "Item": "Common Dialog",
  191.             "Info": "'Common Dialog Control\r\n'Action Property\r\nGlobal Const DLG_FILE_OPEN = 1\r\nGlobal Const DLG_FILE_SAVE = 2\r\nGlobal Const DLG_COLOR = 3\r\nGlobal Const DLG_FONT = 4\r\nGlobal Const DLG_PRINT = 5\r\nGlobal Const DLG_HELP = 6\r\n\r\n'File Open/Save Dialog Flags\r\nGlobal Const OFN_READONLY = &H1&\r\nGlobal Const OFN_OVERWRITEPROMPT = &H2&\r\nGlobal Const OFN_HIDEREADONLY = &H4&\r\nGlobal Const OFN_NOCHANGEDIR = &H8&\r\nGlobal Const OFN_SHOWHELP = &H10&\r\nGlobal Const OFN_NOVALIDATE = &H100&\r\nGlobal Const OFN_ALLOWMULTISELECT = &H200&\r\nGlobal Const OFN_EXTENSIONDIFFERENT = &H400&\r\nGlobal Const OFN_PATHMUSTEXIST = &H800&\r\nGlobal Const OFN_FILEMUSTEXIST = &H1000&\r\nGlobal Const OFN_CREATEPROMPT = &H2000&\r\nGlobal Const OFN_SHAREAWARE = &H4000&\r\nGlobal Const OFN_NOREADONLYRETURN = &H8000&\r\n\r\n'Color Dialog Flags\r\nGlobal Const CC_RGBINIT = &H1&\r\nGlobal Const CC_FULLOPEN = &H2&\r\nGlobal Const CC_PREVENTFULLOPEN = &H4&\r\nGlobal Const CC_SHOWHELP = &H8&\r\n\r\n'Fonts Dialog Flags\r\nGlobal Const CF_SCREENFONTS = &H1&\r\nGlobal Const CF_PRINTERFONTS = &H2&\r\nGlobal Const CF_BOTH = &H3&\r\nGlobal Const CF_SHOWHELP = &H4&\r\nGlobal Const CF_INITTOLOGFONTSTRUCT = &H40&\r\nGlobal Const CF_USESTYLE = &H80&\r\nGlobal Const CF_EFFECTS = &H100&\r\nGlobal Const CF_APPLY = &H200&\r\nGlobal Const CF_ANSIONLY = &H400&\r\nGlobal Const CF_NOVECTORFONTS = &H800&\r\nGlobal Const CF_NOSIMULATIONS = &H1000&\r\nGlobal Const CF_LIMITSIZE = &H2000&\r\nGlobal Const CF_FIXEDPITCHONLY = &H4000&\r\nGlobal Const CF_WYSIWYG = &H8000&         'must also have CF_SCREENFONTS & CF_PRINTERFONTS\r\nGlobal Const CF_FORCEFONTEXIST = &H10000\r\nGlobal Const CF_SCALABLEONLY = &H20000\r\nGlobal Const CF_TTONLY = &H40000\r\nGlobal Const CF_NOFACESEL = &H80000\r\nGlobal Const CF_NOSTYLESEL = &H100000\r\nGlobal Const CF_NOSIZESEL = &H200000\r\n\r\n'Printer Dialog Flags\r\nGlobal Const PD_ALLPAGES = &H0&\r\nGlobal Const PD_SELECTION = &H1&\r\nGlobal Const PD_PAGENUMS = &H2&\r\nGlobal Const PD_NOSELECTION = &H4&\r\nGlobal Const PD_NOPAGENUMS = &H8&\r\nGlobal Const PD_COLLATE = &H10&\r\nGlobal Const PD_PRINTTOFILE = &H20&\r\nGlobal Const PD_PRINTSETUP = &H40&\r\nGlobal Const PD_NOWARNING = &H80&\r\nGlobal Const PD_RETURNDC = &H100&\r\nGlobal Const PD_RETURNIC = &H200&\r\nGlobal Const PD_RETURNDEFAULT = &H400&\r\nGlobal Const PD_SHOWHELP = &H800&\r\nGlobal Const PD_USEDEVMODECOPIES = &H40000\r\nGlobal Const PD_DISABLEPRINTTOFILE = &H80000\r\nGlobal Const PD_HIDEPRINTTOFILE = &H100000\r\n\r\n'Error Constants\r\nGlobal Const CDERR_DIALOGFAILURE = -32768\r\n\r\nGlobal Const CDERR_GENERALCODES =&H7FFF\r\nGlobal Const CDERR_STRUCTSIZE = &H7FFE\r\nGlobal Const CDERR_INITIALIZATION = &H7FFD\r\nGlobal Const CDERR_NOTEMPLATE = &H7FFC\r\nGlobal Const CDERR_NOHINSTANCE = &H7FFB\r\nGlobal Const CDERR_LOADSTRFAILURE = &H7FFA\r\nGlobal Const CDERR_FINDRESFAILURE = &H7FF9\r\nGlobal Const CDERR_LOADRESFAILURE = &H7FF8\r\nGlobal Const CDERR_LOCKRESFAILURE = &H7FF7\r\nGlobal Const CDERR_MEMALLOCFAILURE = &H7FF6\r\nGlobal Const CDERR_MEMLOCKFAILURE = &H7FF5\r\nGlobal Const CDERR_NOHOOK = &H7FF4\r\n\r\n'Added for CMDIALOG.VBX\r\nGlobal Const CDERR_CANCEL = &H7FF3\r\nGlobal Const CDERR_NODLL = &H7FF2\r\nGlobal Const CDERR_ERRPROC = &H7FF1\r\nGlobal Const CDERR_ALLOC = &H7FF0\r\nGlobal Const CDERR_HELP = &H7FEF\r\n\r\nGlobal Const PDERR_PRINTERCODES = &H6FFF\r\nGlobal Const PDERR_SETUPFAILURE = &H6FFE\r\nGlobal Const PDERR_PARSEFAILURE = &H6FFD\r\nGlobal Const PDERR_RETDEFFAILURE = &H6FFC\r\nGlobal Const PDERR_LOADDRVFAILURE = &H6FFB\r\nGlobal Const PDERR_GETDEVMODEFAIL = &H6FFA\r\nGlobal Const PDERR_INITFAILURE = &H6FF9\r\nGlobal Const PDERR_NODEVICES = &H6FF8\r\nGlobal Const PDERR_NODEFAULTPRN = &H6FF7\r\nGlobal Const PDERR_DNDMMISMATCH = &H6FF6\r\nGlobal Const PDERR_CREATEICFAILURE = &H6FF5\r\nGlobal Const PDERR_PRINTERNOTFOUND = &H6FF4\r\n\r\nGlobal Const CFERR_CHOOSEFONTCODES = &H5FFF\r\nGlobal Const CFERR_NOFONTS = &H5FFE\r\n\r\nGlobal Const FNERR_FILENAMECODES = &H4FFF\r\nGlobal Const FNERR_SUBCLASSFAILURE = &H4FFE\r\nGlobal Const FNERR_INVALIDFILENAME = &H4FFD\r\nGlobal Const FNERR_BUFFERTOOSMALL = &H4FFC\r\n\r\nGlobal Const FRERR_FINDREPLACECODES = &H3FFF\r\nGlobal Const CCERR_CHOOSECOLORCODES = &H2FFF\r\n"
  192.         },
  193.         {
  194.             "Group": "Constants",
  195.             "Item": "Error",
  196.             "Info": "'Error Constants\r\nGlobal Const CDERR_DIALOGFAILURE = -32768\r\n\r\nGlobal Const CDERR_GENERALCODES =&H7FFF\r\nGlobal Const CDERR_STRUCTSIZE = &H7FFE\r\nGlobal Const CDERR_INITIALIZATION = &H7FFD\r\nGlobal Const CDERR_NOTEMPLATE = &H7FFC\r\nGlobal Const CDERR_NOHINSTANCE = &H7FFB\r\nGlobal Const CDERR_LOADSTRFAILURE = &H7FFA\r\nGlobal Const CDERR_FINDRESFAILURE = &H7FF9\r\nGlobal Const CDERR_LOADRESFAILURE = &H7FF8\r\nGlobal Const CDERR_LOCKRESFAILURE = &H7FF7\r\nGlobal Const CDERR_MEMALLOCFAILURE = &H7FF6\r\nGlobal Const CDERR_MEMLOCKFAILURE = &H7FF5\r\nGlobal Const CDERR_NOHOOK = &H7FF4\r\n\r\n'Added for CMDIALOG.VBX\r\nGlobal Const CDERR_CANCEL = &H7FF3\r\nGlobal Const CDERR_NODLL = &H7FF2\r\nGlobal Const CDERR_ERRPROC = &H7FF1\r\nGlobal Const CDERR_ALLOC = &H7FF0\r\nGlobal Const CDERR_HELP = &H7FEF\r\n\r\nGlobal Const PDERR_PRINTERCODES = &H6FFF\r\nGlobal Const PDERR_SETUPFAILURE = &H6FFE\r\nGlobal Const PDERR_PARSEFAILURE = &H6FFD\r\nGlobal Const PDERR_RETDEFFAILURE = &H6FFC\r\nGlobal Const PDERR_LOADDRVFAILURE = &H6FFB\r\nGlobal Const PDERR_GETDEVMODEFAIL = &H6FFA\r\nGlobal Const PDERR_INITFAILURE = &H6FF9\r\nGlobal Const PDERR_NODEVICES = &H6FF8\r\nGlobal Const PDERR_NODEFAULTPRN = &H6FF7\r\nGlobal Const PDERR_DNDMMISMATCH = &H6FF6\r\nGlobal Const PDERR_CREATEICFAILURE = &H6FF5\r\nGlobal Const PDERR_PRINTERNOTFOUND = &H6FF4\r\n\r\nGlobal Const CFERR_CHOOSEFONTCODES = &H5FFF\r\nGlobal Const CFERR_NOFONTS = &H5FFE\r\n\r\nGlobal Const FNERR_FILENAMECODES = &H4FFF\r\nGlobal Const FNERR_SUBCLASSFAILURE = &H4FFE\r\nGlobal Const FNERR_INVALIDFILENAME = &H4FFD\r\nGlobal Const FNERR_BUFFERTOOSMALL = &H4FFC\r\n\r\nGlobal Const FRERR_FINDREPLACECODES = &H3FFF\r\nGlobal Const CCERR_CHOOSECOLORCODES = &H2FFF\r\n"
  197.         },
  198.         {
  199.             "Group": "Constants",
  200.             "Item": "Animated Button",
  201.             "Info": "'---------------------------------------\r\n'Animated Button\r\n'---------------------------------------\r\n'Cycle property\r\nGlobal Const ANI_ANIMATED = 0\r\nGlobal Const ANI_MULTISTATE = 1\r\nGlobal Const ANI_TWO_STATE = 2\r\n\r\n'Click Filter property\r\nGlobal Const ANI_ANYWHERE = 0\r\nGlobal Const ANI_IMAGE_AND_TEXT = 1\r\nGlobal Const ANI_IMAGE = 2\r\nGlobal Const ANI_TEXT = 3\r\n\r\n'PicDrawMode Property\r\nGlobal Const ANI_XPOS_YPOS = 0\r\nGlobal Const ANI_AUTOSIZE = 1\r\nGlobal Const ANI_STRETCH = 2\r\n\r\n'SpecialOp Property\r\nGlobal Const ANI_CLICK = 1\r\n\r\n'TextPosition Property\r\nGlobal Const ANI_CENTER = 0\r\nGlobal Const ANI_LEFT = 1\r\nGlobal Const ANI_RIGHT = 2\r\nGlobal Const ANI_BOTTON = 3\r\nGlobal Const ANI_TOP = 4\r\n"
  202.         },
  203.         {
  204.             "Group": "Constants",
  205.             "Item": "Guage",
  206.             "Info": "'---------------------------------------\r\n'GAUGE\r\n'---------------------------------------\r\n'Style Property\r\nGlobal Const GAUGE_HORIZ = 0\r\nGlobal Const GAUGE_VERT = 1\r\nGlobal Const GAUGE_SEMI = 2\r\nGlobal Const GAUGE_FULL = 3\r\n"
  207.         },
  208.         {
  209.             "Group": "Constants",
  210.             "Item": "Graph",
  211.             "Info": "'----------------------------------------\r\n'Graph Control\r\n'----------------------------------------\r\n'General\r\nGlobal Const G_NONE = 0\r\nGlobal Const G_DEFAULT = 0\r\n\r\nGlobal Const G_OFF = 0\r\nGlobal Const G_ON = 1\r\n\r\nGlobal Const G_MONO = 0\r\nGlobal Const G_COLOR = 1\r\n\r\n'Graph Types\r\nGlobal Const G_PIE2D = 1\r\nGlobal Const G_PIE3D = 2\r\nGlobal Const G_BAR2D = 3\r\nGlobal Const G_BAR3D = 4\r\nGlobal Const G_GANTT = 5\r\nGlobal Const G_LINE = 6\r\nGlobal Const G_LOGLIN = 7\r\nGlobal Const G_AREA = 8\r\nGlobal Const G_SCATTER = 9\r\nGlobal Const G_POLAR = 10\r\nGlobal Const G_HLC = 11\r\n\r\n'Colors\r\nGlobal Const G_BLACK = 0\r\nGlobal Const G_BLUE = 1\r\nGlobal Const G_GREEN = 2\r\nGlobal Const G_CYAN = 3\r\nGlobal Const G_RED = 4\r\nGlobal Const G_MAGENTA = 5\r\nGlobal Const G_BROWN = 6\r\nGlobal Const G_LIGHT_GRAY = 7\r\nGlobal Const G_DARK_GRAY = 8\r\nGlobal Const G_LIGHT_BLUE = 9\r\nGlobal Const G_LIGHT_GREEN = 10\r\nGlobal Const G_LIGHT_CYAN = 11\r\nGlobal Const G_LIGHT_RED = 12\r\nGlobal Const G_LIGHT_MAGENTA = 13\r\nGlobal Const G_YELLOW = 14\r\nGlobal Const G_WHITE = 15\r\nGlobal Const G_AUTOBW = 16\r\n\r\n'Patterns\r\nGlobal Const G_SOLID = 0\r\nGlobal Const G_HOLLOW = 1\r\nGlobal Const G_HATCH1 = 2\r\nGlobal Const G_HATCH2 = 3\r\nGlobal Const G_HATCH3 = 4\r\nGlobal Const G_HATCH4 = 5\r\nGlobal Const G_HATCH5 = 6\r\nGlobal Const G_HATCH6 = 7\r\nGlobal Const G_BITMAP1 = 16\r\nGlobal Const G_BITMAP2 = 17\r\nGlobal Const G_BITMAP3 = 18\r\nGlobal Const G_BITMAP4 = 19\r\nGlobal Const G_BITMAP5 = 20\r\nGlobal Const G_BITMAP6 = 21\r\nGlobal Const G_BITMAP7 = 22\r\nGlobal Const G_BITMAP8 = 23\r\nGlobal Const G_BITMAP9 = 24\r\nGlobal Const G_BITMAP10 = 25\r\nGlobal Const G_BITMAP11 = 26\r\nGlobal Const G_BITMAP12 = 27\r\nGlobal Const G_BITMAP13 = 28\r\nGlobal Const G_BITMAP14 = 29\r\nGlobal Const G_BITMAP15 = 30\r\nGlobal Const G_BITMAP16 = 31\r\n\r\n'Symbols\r\nGlobal Const G_CROSS_PLUS = 0\r\nGlobal Const G_CROSS_TIMES = 1\r\nGlobal Const G_TRIANGLE_UP = 2\r\nGlobal Const G_SOLID_TRIANGLE_UP = 3\r\nGlobal Const G_TRIANGLE_DOWN = 4\r\nGlobal Const G_SOLID_TRIANGLE_DOWN = 5\r\nGlobal Const G_SQUARE = 6\r\nGlobal Const G_SOLID_SQUARE = 7\r\nGlobal Const G_DIAMOND = 8\r\nGlobal Const G_SOLID_DIAMOND = 9\r\n\r\n'Line Styles\r\n'Global Const G_SOLID = 0\r\nGlobal Const G_DASH = 1\r\nGlobal Const G_DOT = 2\r\nGlobal Const G_DASHDOT = 3\r\nGlobal Const G_DASHDOTDOT = 4\r\n\r\n'Grids\r\nGlobal Const G_HORIZONTAL = 1\r\nGlobal Const G_VERTICAL = 2\r\n\r\n'Statistics\r\nGlobal Const G_MEAN = 1\r\nGlobal Const G_MIN_MAX = 2\r\nGlobal Const G_STD_DEV = 4\r\nGlobal Const G_BEST_FIT = 8\r\n\r\n'Data Arrays\r\nGlobal Const G_GRAPH_DATA = 1\r\nGlobal Const G_COLOR_DATA = 2\r\nGlobal Const G_EXTRA_DATA = 3\r\nGlobal Const G_LABEL_TEXT = 4\r\nGlobal Const G_LEGEND_TEXT = 5\r\nGlobal Const G_PATTERN_DATA = 6\r\nGlobal Const G_SYMBOL_DATA = 7\r\nGlobal Const G_XPOS_DATA = 8\r\nGlobal Const G_ALL_DATA = 9\r\n\r\n'Draw Mode\r\nGlobal Const G_NO_ACTION = 0\r\nGlobal Const G_CLEAR = 1\r\nGlobal Const G_DRAW = 2\r\nGlobal Const G_BLIT = 3\r\nGlobal Const G_COPY = 4\r\nGlobal Const G_PRINT = 5\r\nGlobal Const G_WRITE = 6\r\n\r\n'Print Options\r\nGlobal Const G_BORDER = 2\r\n\r\n'Pie Chart Options             '\r\nGlobal Const G_NO_LINES = 1\r\nGlobal Const G_COLORED = 2\r\nGlobal Const G_PERCENTS = 4\r\n\r\n'Bar Chart Options             '\r\n'Global Const G_HORIZONTAL = 1\r\nGlobal Const G_STACKED = 2\r\nGlobal Const G_PERCENTAGE = 4\r\nGlobal Const G_Z_CLUSTERED = 6\r\n\r\n'Gantt Chart Options           '\r\nGlobal Const G_SPACED_BARS = 1\r\n\r\n'Line/Polar Chart Options      '\r\nGlobal Const G_SYMBOLS = 1\r\nGlobal Const G_STICKS = 2\r\nGlobal Const G_LINES = 4\r\n\r\n'Area Chart Options            '\r\nGlobal Const G_ABSOLUTE = 1\r\nGlobal Const G_PERCENT = 2\r\n\r\n'HLC Chart Options             '\r\nGlobal Const G_NO_CLOSE = 1\r\nGlobal Const G_NO_HIGH_LOW = 2\r\n"
  212.         },
  213.         {
  214.             "Group": "Constants",
  215.             "Item": "Key Status",
  216.             "Info": "'---------------------------------------\r\n'Key Status Control\r\n'---------------------------------------\r\n'Style\r\nGlobal Const KEYSTAT_CAPSLOCK = 0\r\nGlobal Const KEYSTAT_NUMLOCK = 1\r\nGlobal Const KEYSTAT_INSERT = 2\r\nGlobal Const KEYSTAT_SCROLLLOCK = 3\r\n"
  217.         },
  218.         {
  219.             "Group": "Constants",
  220.             "Item": "MCI Control",
  221.             "Info": "'---------------------------------------\r\n'MCI Control (Multimedia)\r\n'---------------------------------------\r\n'NOTE:\r\n'Please use the updated Multimedia constants\r\n'in the WINMMSYS.TXT file from the \\VB\\WINAPI\r\n'subdirectory.\r\n\r\n'Mode Property\r\n'Global Const MCI_MODE_NOT_OPEN = 11\r\n'Global Const MCI_MODE_STOP = 12\r\n'Global Const MCI_MODE_PLAY = 13\r\n'Global Const MCI_MODE_RECORD = 14\r\n'Global Const MCI_MODE_SEEK = 15\r\n'Global Const MCI_MODE_PAUSE = 16\r\n'Global Const MCI_MODE_READY = 17\r\n\r\n'NotifyValue Property\r\n'Global Const MCI_NOTIFY_SUCCESSFUL = 1\r\n'Global Const MCI_NOTIFY_SUPERSEDED = 2\r\n'Global Const MCI_ABORTED = 4\r\n'Global Const MCI_FAILURE = 8\r\n\r\n'Orientation Property\r\n'Global Const MCI_ORIENT_HORZ = 0\r\n'Global Const MCI_ORIENT_VERT = 1\r\n\r\n'RecordMode Porperty\r\n'Global Const MCI_RECORD_INSERT = 0\r\n'Global Const MCI_RECORD_OVERWRITE = 1\r\n\r\n'TimeFormat Property\r\n'Global Const MCI_FORMAT_MILLISECONDS = 0\r\n'Global Const MCI_FORMAT_HMS = 1\r\n'Global Const MCI_FORMAT_MSF = 2\r\n'Global Const MCI_FORMAT_FRAMES = 3\r\n'Global Const MCI_FORMAT_SMPTE_24 = 4\r\n'Global Const MCI_FORMAT_SMPTE_25 = 5\r\n'Global Const MCI_FORMAT_SMPTE_30 = 6\r\n'Global Const MCI_FORMAT_SMPTE_30DROP = 7\r\n'Global Const MCI_FORMAT_BYTES = 8\r\n'Global Const MCI_FORMAT_SAMPLES = 9\r\n'Global Const MCI_FORMAT_TMSF = 10\r\n"
  222.         },
  223.         {
  224.             "Group": "Constants",
  225.             "Item": "Spin",
  226.             "Info": "'---------------------------------------\r\n'Spin Button\r\n'---------------------------------------\r\n'SpinOrientation\r\nGlobal Const SPIN_VERTICAL = 0\r\nGlobal Const SPIN_HORIZONTAL = 1\r\n"
  227.         },
  228.         {
  229.             "Group": "Constants",
  230.             "Item": "Masked Edit",
  231.             "Info": "'---------------------------------------\r\n'Masked Edit Control\r\n'---------------------------------------\r\n'ClipMode\r\nGlobal Const ME_INCLIT = 0\r\nGlobal Const ME_EXCLIT = 1\r\n"
  232.         },
  233.         {
  234.             "Group": "Constants",
  235.             "Item": "Outline",
  236.             "Info": "'-------------------------------------------------\r\n'  Outline\r\n'-------------------------------------------------\r\n' PictureType\r\nGlobal Const MSOUTLINE_PICTURE_CLOSED = 0\r\nGlobal Const MSOUTLINE_PICTURE_OPEN = 1\r\nGlobal Const MSOUTLINE_PICTURE_LEAF = 2\r\n\r\n'Outline Control Error Constants\r\nGlobal Const MSOUTLINE_BADPICFORMAT = 32000\r\nGlobal Const MSOUTLINE_BADINDENTATION = 32001\r\nGlobal Const MSOUTLINE_MEM = 32002\r\nGlobal Const MSOUTLINE_PARENTNOTEXPANDED = 32003\r\n"
  237.         },
  238.         {
  239.             "Group": "Constants",
  240.             "Item": "MAPI",
  241.             "Info": "'---------------------------------------\r\n' MAPI SESSION CONTROL CONSTANTS\r\n'---------------------------------------\r\n'Action\r\nGlobal Const SESSION_SIGNON = 1\r\nGlobal Const SESSION_SIGNOFF = 2\r\n\r\n\r\n'---------------------------------------\r\n' MAPI MESSAGE CONTROL CONSTANTS\r\n'---------------------------------------\r\n'Action\r\nGlobal Const MESSAGE_FETCH = 1             ' Load all messages from message store\r\nGlobal Const MESSAGE_SENDDLG = 2           ' Send mail bring up default mapi dialog\r\nGlobal Const MESSAGE_SEND = 3              ' Send mail without default mapi dialog\r\nGlobal Const MESSAGE_SAVEMSG = 4           ' Save message in the compose buffer\r\nGlobal Const MESSAGE_COPY = 5              ' Copy current message to compose buffer\r\nGlobal Const MESSAGE_COMPOSE = 6           ' Initialize compose buffer (previous\r\n\t\t\t\t\t   ' data is lost\r\nGlobal Const MESSAGE_REPLY = 7             ' Fill Compose buffer as REPLY\r\nGlobal Const MESSAGE_REPLYALL = 8          ' Fill Compose buffer as REPLY ALL\r\nGlobal Const MESSAGE_FORWARD = 9           ' Fill Compose buffer as FORWARD\r\nGlobal Const MESSAGE_DELETE = 10           ' Delete current message\r\nGlobal Const MESSAGE_SHOWADBOOK = 11       ' Show Address book\r\nGlobal Const MESSAGE_SHOWDETAILS = 12      ' Show details of the current recipient\r\nGlobal Const MESSAGE_RESOLVENAME = 13      ' Resolve the display name of the recipient\r\nGlobal Const RECIPIENT_DELETE = 14            ' Fill Compose buffer as FORWARD\r\nGlobal Const ATTACHMENT_DELETE = 15          ' Delete current message\r\n\r\n\r\n'---------------------------------------\r\n'  ERROR CONSTANT DECLARATIONS (MAPI CONTROLS)\r\n'---------------------------------------\r\nGlobal Const SUCCESS_SUCCESS = 32000\r\nGlobal Const MAPI_USER_ABORT = 32001\r\nGlobal Const MAPI_E_FAILURE  = 32002\r\nGlobal Const MAPI_E_LOGIN_FAILURE = 32003\r\nGlobal Const MAPI_E_DISK_FULL = 32004\r\nGlobal Const MAPI_E_INSUFFICIENT_MEMORY = 32005\r\nGlobal Const MAPI_E_ACCESS_DENIED = 32006\r\nGlobal Const MAPI_E_TOO_MANY_SESSIONS = 32008\r\nGlobal Const MAPI_E_TOO_MANY_FILES = 32009\r\nGlobal Const MAPI_E_TOO_MANY_RECIPIENTS = 32010\r\nGlobal Const MAPI_E_ATTACHMENT_NOT_FOUND = 32011\r\nGlobal Const MAPI_E_ATTACHMENT_OPEN_FAILURE = 32012\r\nGlobal Const MAPI_E_ATTACHMENT_WRITE_FAILURE = 32013\r\nGlobal Const MAPI_E_UNKNOWN_RECIPIENT = 32014\r\nGlobal Const MAPI_E_BAD_RECIPTYPE = 32015\r\nGlobal Const MAPI_E_NO_MESSAGES = 32016\r\nGlobal Const MAPI_E_INVALID_MESSAGE = 32017\r\nGlobal Const MAPI_E_TEXT_TOO_LARGE = 32018\r\nGlobal Const MAPI_E_INVALID_SESSION = 32019\r\nGlobal Const MAPI_E_TYPE_NOT_SUPPORTED = 32020\r\nGlobal Const MAPI_E_AMBIGUOUS_RECIPIENT = 32021\r\nGlobal Const MAPI_E_MESSAGE_IN_USE = 32022\r\nGlobal Const MAPI_E_NETWORK_FAILURE = 32023\r\nGlobal Const MAPI_E_INVALID_EDITFIELDS = 32024\r\nGlobal Const MAPI_E_INVALID_RECIPS = 32025\r\nGlobal Const MAPI_E_NOT_SUPPORTED = 32026\r\n\r\nGlobal Const CONTROL_E_SESSION_EXISTS = 32050\r\nGlobal Const CONTROL_E_INVALID_BUFFER = 32051\r\nGlobal Const CONTROL_E_INVALID_READ_BUFFER_ACTION = 32052\r\nGlobal Const CONTROL_E_NO_SESSION = 32053\r\nGlobal Const CONTROL_E_INVALID_RECIPIENT = 32054\r\nGlobal Const CONTROL_E_INVALID_COMPOSE_BUFFER_ACTION = 32055\r\nGlobal Const CONTROL_E_FAILURE = 32056\r\nGlobal Const CONTROL_E_NO_RECIPIENTS = 32057\r\nGlobal Const CONTROL_E_NO_ATTACHMENTS = 32058\r\n\r\n\r\n'---------------------------------------\r\n'  MISCELLANEOUS GLOBAL CONSTANT DECLARATIONS (MAPI CONTROLS)\r\n'---------------------------------------\r\nGlobal Const RECIPTYPE_ORIG = 0\r\nGlobal Const RECIPTYPE_TO = 1\r\nGlobal Const RECIPTYPE_CC = 2\r\nGlobal Const RECIPTYPE_BCC = 3\r\n\r\nGlobal Const ATTACHTYPE_DATA = 0\r\nGlobal Const ATTACHTYPE_EOLE = 1\r\nGlobal Const ATTACHTYPE_SOLE = 2\r\n"
  242.         },
  243.         {
  244.             "Group": "Constants",
  245.             "Item": "Communications Control",
  246.             "Info": "'---------------------------------------\r\n'Comm Control\r\n'---------------------------------------\r\n'Handshaking\r\nGlobal Const MSCOMM_HANDSHAKE_NONE = 0\r\nGlobal Const MSCOMM_HANDSHAKE_XONXOFF = 1\r\nGlobal Const MSCOMM_HANDSHAKE_RTS = 2\r\nGlobal Const MSCOMM_HANDSHAKE_RTSXONXOFF = 3\r\n\r\n'Event constants\r\nGlobal Const MSCOMM_EV_SEND = 1\r\nGlobal Const MSCOMM_EV_RECEIVE = 2\r\nGlobal Const MSCOMM_EV_CTS = 3\r\nGlobal Const MSCOMM_EV_DSR = 4\r\nGlobal Const MSCOMM_EV_CD = 5\r\nGlobal Const MSCOMM_EV_RING = 6\r\nGlobal Const MSCOMM_EV_EOF = 7\r\n\r\n'Error code constants\r\nGlobal Const MSCOMM_ER_BREAK = 1001\r\nGlobal Const MSCOMM_ER_CTSTO = 1002\r\nGlobal Const MSCOMM_ER_DSRTO = 1003\r\nGlobal Const MSCOMM_ER_FRAME = 1004\r\nGlobal Const MSCOMM_ER_OVERRUN = 1006\r\nGlobal Const MSCOMM_ER_CDTO = 1007\r\nGlobal Const MSCOMM_ER_RXOVER = 1008\r\nGlobal Const MSCOMM_ER_RXPARITY = 1009\r\nGlobal Const MSCOMM_ER_TXFULL = 1010\r\n"
  247.         },
  248.         {
  249.             "Group": "Memory",
  250.             "Item": "Declarations",
  251.             "Info": "Const GFSR_SYSTEMRESOURCES = 0\r\nConst GFSR_GDIRESOURCES = 1\r\nConst GFSR_USERRESOURCES = 2\r\nConst WF_WIN286 = &H10\r\nConst WF_WIN386 = &H20\r\n\r\nDeclare Function GetFreeSpace& Lib \"Kernel\" (ByVal wFlags%)\r\nDeclare Function GetFreeSystemResources% Lib \"User\" (ByVal fuSysResource%)\r\nDeclare Function GetWinFlags% Lib \"Kernel\" ()\r\nDeclare Function GetVersion% Lib \"Kernel\" ()"
  252.         },
  253.         {
  254.             "Group": "Memory",
  255.             "Item": "Form_Load",
  256.             "Info": "Static lngFlag&, intFlag%\r\n\r\nintFlag = GetVersion() And &HFFFF&\r\nlblVersion.Caption = (intFlag And &HFF) & \".\" & CInt(intFlag / 256)\r\n\r\nlngFlag = GetWinFlags()\r\nIf lngFlag And WF_WIN386 Then lblMode.Caption = \"386 Enhanced Mode\"\r\nIf lngFlag And WF_WIN286 Then lblMode.Caption = \"286 Protected Mode\"\r\n'If lngFlag And WF_WLO Then lblMode.Caption = \"Windows emulation in non-Windows system\"\r\n\r\nlblFreeMemory.Caption = Format$(GetFreeSpace(0), \"###,###\") & \" KB Free\"\r\nlblSystemResources.Caption = Format$(GetFreeSystemResources(GFSR_SYSTEMRESOURCES)) & \"%\"\r\nlblGDIResources.Caption = Format$(GetFreeSystemResources(GFSR_GDIRESOURCES)) & \"%\"\r\nlblUserResources.Caption = Format$(GetFreeSystemResources(GFSR_USERRESOURCES)) & \"%\""
  257.         },
  258.         {
  259.             "Group": "List Box",
  260.             "Item": "Set Tab Stops",
  261.             "Info": "Sub cListSetTabStops (lstIn as Control, intUnits%)\r\n'setup tab stops in list box - intUnits dialog units/character\r\n'tab at character 24 / intUnits\r\n\r\nStatic lRet&\r\nReDim giTabStops%(intUnits - 1)\r\n\r\nFor lRet = 0 to intUnits - 1\r\n    giTabStops%(lRet) = lRet * 10 * (lRet + 1)\r\nNext lRet\r\n\r\nlRet& = SendMessage(lstIn.hWnd, LB_SETTABSTOPS, intUnits, giTabStops%(0))\r\n\r\nEnd Sub"
  262.         },
  263.         {
  264.             "Group": "List Box",
  265.             "Item": "(General)",
  266.             "Info": "Global Const WM_USER = &H400\r\nGlobal Const LB_SETTABSTOPS = (WM_USER + 19)\r\nGlobal Const LB_SETHORIZONTALEXTENT = (WM_USER + 21)\r\n\r\nDeclare Function SendMessage Lib \"User\" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long\r\n"
  267.         },
  268.         {
  269.             "Group": "Text Box",
  270.             "Item": "Numbers Only",
  271.             "Info": "Sub txtBox_Keypress (KeyASCII as Integer)\r\n'This routine processes numbers only\r\n    If KeyASCII = 13 Then\r\n        Keyascii = 0\r\n        SendKeys \"{TAB}\"\r\n    Else\r\n        If keyascii >= 48 And keyascii <= 57 Then 'Numbers\r\n        ElseIf KeyASCII = 8 Then 'Backspace\r\n        Else\r\n            'It is not a number so ignore the keystroke\r\n            KeyASCII = 0\r\n        End If\r\n    End If\r\n\r\nEnd Sub"
  272.         },
  273.         {
  274.             "Group": "Text Box",
  275.             "Item": "Upper Case Only",
  276.             "Info": "Sub txtBox_Keypress (KeyASCII as Integer)\r\n'Converts all input to the text box to upper case\r\n\r\n    If KeyASCII = 13 Then\r\n        'Keeps the keyboard from beeping\r\n        KeyASCII = 0\r\n\r\n        'Allows the cursor to move to the next field\r\n        SendKeys \"{TAB}\"\r\n    Else\r\n        KeyASCII = Asc(UCase(Chr$(KeyASCII)))\r\n    End If\r\n\r\nEnd Sub"
  277.         },
  278.         {
  279.             "Group": "Text Box",
  280.             "Item": "Read Only",
  281.             "Info": "Sub txtReadOnly (txtIn as Control, flgIn%)\r\n'Makes a text box read only or re-write depending on flgIn\r\n\r\nStatic lRet%\r\n\r\nlRet = SendMessage(txtIn.hWnd, EM_SETREADONLY, flgIn, 0)\r\n\r\nEnd Sub"
  282.         },
  283.         {
  284.             "Group": "Text Box",
  285.             "Item": "(General)",
  286.             "Info": "Global Const WM_USER = &H400\r\nGlobal Const EM_SETREADONLY = (WM_USER + 31)\r\n\r\nDeclare Function SendMessage& Lib \"User\" (ByVal hWnd%, ByVal wMsg%, ByVal wParam%, lParam As Any)\r\n"
  287.         },
  288.         {
  289.             "Group": "Common Dialog",
  290.             "Item": "(General)",
  291.             "Info": "'Common Dialog Control\r\n'Action Property\r\nGlobal Const DLG_FILE_OPEN = 1\r\nGlobal Const DLG_FILE_SAVE = 2\r\nGlobal Const DLG_COLOR = 3\r\nGlobal Const DLG_FONT = 4\r\nGlobal Const DLG_PRINT = 5\r\nGlobal Const DLG_HELP = 6\r\n\r\n'File Open/Save Dialog Flags\r\nGlobal Const OFN_READONLY = &H1&\r\nGlobal Const OFN_OVERWRITEPROMPT = &H2&\r\nGlobal Const OFN_HIDEREADONLY = &H4&\r\nGlobal Const OFN_NOCHANGEDIR = &H8&\r\nGlobal Const OFN_SHOWHELP = &H10&\r\nGlobal Const OFN_NOVALIDATE = &H100&\r\nGlobal Const OFN_ALLOWMULTISELECT = &H200&\r\nGlobal Const OFN_EXTENSIONDIFFERENT = &H400&\r\nGlobal Const OFN_PATHMUSTEXIST = &H800&\r\nGlobal Const OFN_FILEMUSTEXIST = &H1000&\r\nGlobal Const OFN_CREATEPROMPT = &H2000&\r\nGlobal Const OFN_SHAREAWARE = &H4000&\r\nGlobal Const OFN_NOREADONLYRETURN = &H8000&\r\n\r\n'Color Dialog Flags\r\nGlobal Const CC_RGBINIT = &H1&\r\nGlobal Const CC_FULLOPEN = &H2&\r\nGlobal Const CC_PREVENTFULLOPEN = &H4&\r\nGlobal Const CC_SHOWHELP = &H8&\r\n\r\n'Fonts Dialog Flags\r\nGlobal Const CF_SCREENFONTS = &H1&\r\nGlobal Const CF_PRINTERFONTS = &H2&\r\nGlobal Const CF_BOTH = &H3&\r\nGlobal Const CF_SHOWHELP = &H4&\r\nGlobal Const CF_INITTOLOGFONTSTRUCT = &H40&\r\nGlobal Const CF_USESTYLE = &H80&\r\nGlobal Const CF_EFFECTS = &H100&\r\nGlobal Const CF_APPLY = &H200&\r\nGlobal Const CF_ANSIONLY = &H400&\r\nGlobal Const CF_NOVECTORFONTS = &H800&\r\nGlobal Const CF_NOSIMULATIONS = &H1000&\r\nGlobal Const CF_LIMITSIZE = &H2000&\r\nGlobal Const CF_FIXEDPITCHONLY = &H4000&\r\nGlobal Const CF_WYSIWYG = &H8000&         'must also have CF_SCREENFONTS & CF_PRINTERFONTS\r\nGlobal Const CF_FORCEFONTEXIST = &H10000\r\nGlobal Const CF_SCALABLEONLY = &H20000\r\nGlobal Const CF_TTONLY = &H40000\r\nGlobal Const CF_NOFACESEL = &H80000\r\nGlobal Const CF_NOSTYLESEL = &H100000\r\nGlobal Const CF_NOSIZESEL = &H200000\r\n\r\n'Printer Dialog Flags\r\nGlobal Const PD_ALLPAGES = &H0&\r\nGlobal Const PD_SELECTION = &H1&\r\nGlobal Const PD_PAGENUMS = &H2&\r\nGlobal Const PD_NOSELECTION = &H4&\r\nGlobal Const PD_NOPAGENUMS = &H8&\r\nGlobal Const PD_COLLATE = &H10&\r\nGlobal Const PD_PRINTTOFILE = &H20&\r\nGlobal Const PD_PRINTSETUP = &H40&\r\nGlobal Const PD_NOWARNING = &H80&\r\nGlobal Const PD_RETURNDC = &H100&\r\nGlobal Const PD_RETURNIC = &H200&\r\nGlobal Const PD_RETURNDEFAULT = &H400&\r\nGlobal Const PD_SHOWHELP = &H800&\r\nGlobal Const PD_USEDEVMODECOPIES = &H40000\r\nGlobal Const PD_DISABLEPRINTTOFILE = &H80000\r\nGlobal Const PD_HIDEPRINTTOFILE = &H100000\r\n"
  292.         },
  293.         {
  294.             "Group": "Common Dialog",
  295.             "Item": "GetColorFromDialog",
  296.             "Info": "Function GetColorFromDialog& (CMDialog as Control, lngColorIn&, strCaption$)\r\n'Returns a color from the common dialog that is passed in\r\n\r\n'set cancel to true\r\nCMDialog.CancelError = True\r\n\r\nOn Error GoTo ErrGetColorFromDialog\r\n\r\nCMDialog.DialogTitle = strCaption\r\nCMDialog.Color = lngColorIn\r\nCMDialog.Flags = CC_RGBINIT\r\nCMDialog.Action = DLG_COLOR\r\n\r\nGetColorFromDialog = CMDialog.Color\r\nExit Sub\r\n\r\nErrGetColorFromDialog:\r\nGetColorFromDialog = -1 'Error flag\r\nExit Sub\r\n\r\nEnd Sub"
  297.         },
  298.         {
  299.             "Group": "Common Dialog",
  300.             "Item": "GetFileOpen$",
  301.             "Info": "Function GetFileOpen$ (CMDialog As Control, sInitDir$, sCaption$, sDefaultExt$, sFileName$, sFilter$)\r\n'Returns a file name that is selected from the given common dialog\r\n\r\nOn Error GoTo ErrGetFileLoad\r\n\r\nIf sInitDir <> \"\" Then CMDialog.InitDir = sInitDir\r\nCMDialog.CancelError = True\r\nCMDialog.DialogTitle = sCaption\r\nCMDialog.FileName = sFileName\r\nCMDialog.DefaultExt = sDefaultExt\r\nCMDialog.Filter = sFilter\r\nCMDialog.FilterIndex = 1\r\nCMDialog.Action = DLG_FILE_OPEN\r\n\r\nIf InStr(CMDialog.Filename, \"*\") = 0 And CMDialog.Filename <> \"\" And CMDialog.Filename = UCase$(CMDialog.Filename) Then\r\n    GetFileOpen = CMDialog.Filename\r\nEnd If\r\n\r\nExit Function\r\n\r\nErrGetFileLoad:\r\nGetFileOpen = \"\"\r\nExit Function\r\nResume\r\n\r\nEnd Function\r\n"
  302.         },
  303.         {
  304.             "Group": "Common Dialog",
  305.             "Item": "GetFont",
  306.             "Info": "Function SetFont$ (CMDialog As Control, Affected as Control, sCaption$)\r\n'Sets the font on the given control based on the common dialog selection\r\n'Returns the font name\r\n\r\nCMDialog.CancelError = True\r\n\r\nOn Error GoTo ErrGetFont\r\n\r\nCMDialog.DialogTitle = sCaption\r\nCMDialog.FontName = Affected.FontName\r\nCMDialog.FontSize = Affected.FontSize\r\nCMDialog.FontBold = Affected.FontBold\r\nCMDialog.FontItalic = Affected.FontItalic\r\nCMDialog.Flags = CF_SCREENFONTS Or CF_ANSIONLY Or CF_FORCEFONTEXIST\r\nCMDialog.Action = DLG_FONT\r\n\r\nGetFont = CMDialog.FontName\r\nAffected.FontName = CMDialog.FontName\r\nAffected.FontSize = CMDialog.FontSize\r\nAffected.FontBold = CMDialog.FontBold\r\nAffected.FontItalic = CMDialog.FontItalic\r\n\r\nExit Sub\r\n\r\nErrGetFont:\r\nGetFont = \"\"\r\nExit Sub\r\n\r\nEnd Function\r\n"
  307.         },
  308.         {
  309.             "Group": "Common Dialog",
  310.             "Item": "Printer Setup",
  311.             "Info": "Function PrinterSetup% (CMDialog as Control)\r\n\r\nCMDialog.CancelError = True\r\n\r\nOn Error GoTo ErrPrinterSetup\r\n\r\nCMDialog.Flags = PD_PRINTSETUP\r\nCMDialog.Action = DLG_PRINT\r\n\r\nPrinterSetup = True\r\nExit Sub\r\n\r\nErrPrinterSetup:\r\nPrinterSetup = False\r\nExit Sub\r\n\r\nExit Function"
  312.         },
  313.         {
  314.             "Group": "List Box",
  315.             "Item": "Horizontal Scroll Bar",
  316.             "Info": "Sub cListHorizontalScrollBar (lstIn as Control)\r\n'Puts a horizontal scroll bar on the given list box\r\n\r\nStatic intCount%\r\nStatic lRet&\r\nStatic strLong$\r\n\r\nstrLong = \"\"\r\nFor intCount = 1 to lstIn.ListCount\r\n    If Len(lstIn.List(intCount - 1)) > len (strTemp) then\r\n        strLong = lstIn.List(intCount - 1)\r\n    End If\r\nNext intCount\r\nintCount% = (TextWidth(strLong + \"0000\") / Screen.TwipsPerPixelX)\r\nlRet = SendMessage(lstIn.hWnd, LB_SETHORIZONTALEXTENT, intCount%, &H0)\r\n\r\nEnd Sub"
  317.         },
  318.         {
  319.             "Group": "Constants",
  320.             "Item": "Clipboard formats",
  321.             "Info": "''''''''''''''''''''''''''''\r\n' Visual Basic global constant file. This file can be loaded\r\n' into a code module.\r\n'\r\n' Some constants are commented out because they have\r\n' duplicates (e.g., NONE appears several places).\r\n'\r\n' If you are updating a Visual Basic application written with\r\n' an older version, you should replace your global constants\r\n' with the constants in this file.\r\n'\r\n''''''''''''''''''''''''''''\r\n\r\nGlobal Const CF_LINK = &HBF00\r\nGlobal Const CF_TEXT = 1\r\nGlobal Const CF_BITMAP = 2\r\nGlobal Const CF_METAFILE = 3\r\nGlobal Const CF_DIB = 8\r\nGlobal Const CF_PALETTE = 9\r\n"
  322.         },
  323.         {
  324.             "Group": "Constants",
  325.             "Item": "Variant VarType tags",
  326.             "Info": "Global Const V_EMPTY = 0\r\nGlobal Const V_NULL = 1\r\nGlobal Const V_INTEGER = 2\r\nGlobal Const V_LONG = 3\r\nGlobal Const V_SINGLE = 4\r\nGlobal Const V_DOUBLE = 5\r\nGlobal Const V_CURRENCY = 6\r\nGlobal Const V_DATE = 7\r\nGlobal Const V_STRING = 8\r\n"
  327.         },
  328.         {
  329.             "Group": "Constants",
  330.             "Item": "BorderStyle",
  331.             "Info": "' BorderStyle (form)\r\n'Global Const NONE = 0          ' 0 - None\r\nGlobal Const FIXED_SINGLE = 1   ' 1 - Fixed Single\r\nGlobal Const SIZABLE = 2        ' 2 - Sizable (Forms only)\r\nGlobal Const FIXED_DOUBLE = 3   ' 3 - Fixed Double (Forms only)\r\n\r\n' BorderStyle (Shape and Line)\r\n'Global Const TRANSPARENT = 0    '0 - Transparent\r\n'Global Const SOLID = 1          '1 - Solid\r\n'Global Const DASH = 2         ' 2 - Dash\r\n'Global Const DOT = 3          ' 3 - Dot\r\n'Global Const DASH_DOT = 4     ' 4 - Dash-Dot\r\n'Global Const DASH_DOT_DOT = 5 ' 5 - Dash-Dot-Dot\r\n'Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid\r\n"
  332.         },
  333.         {
  334.             "Group": "Constants",
  335.             "Item": "Arrange",
  336.             "Info": "' Arrange Method for MDI Forms\r\nGlobal Const CASCADE = 0\r\nGlobal Const TILE_HORIZONTAL = 1\r\nGlobal Const TILE_VERTICAL = 2\r\nGlobal Const ARRANGE_ICONS = 3\r\n"
  337.         },
  338.         {
  339.             "Group": "Constants",
  340.             "Item": "DDE",
  341.             "Info": "' LinkMode (forms and controls)\r\n' Global Const NONE = 0         ' 0 - None\r\nGlobal Const LINK_SOURCE = 1    ' 1 - Source (forms only)\r\nGlobal Const LINK_AUTOMATIC = 1 ' 1 - Automatic (controls only)\r\nGlobal Const LINK_MANUAL = 2    ' 2 - Manual (controls only)\r\nGlobal Const LINK_NOTIFY = 3    ' 3 - Notify (controls only)\r\n\r\n' LinkMode (kept for VB1.0 compatibility, use new constants instead)\r\nGlobal Const HOT = 1    ' 1 - Hot (controls only)\r\nGlobal Const SERVER = 1 ' 1 - Server (forms only)\r\nGlobal Const COLD = 2   ' 2 - Cold (controls only)\r\n\r\n' ErrNum (LinkError)\r\nGlobal Const WRONG_FORMAT = 1\r\nGlobal Const DDE_SOURCE_CLOSED = 6\r\nGlobal Const TOO_MANY_LINKS = 7\r\nGlobal Const DATA_TRANSFER_FAILED = 8"
  342.         },
  343.         {
  344.             "Group": "Constants",
  345.             "Item": "Scroll Bar",
  346.             "Info": "' ScrollBar\r\n' Global Const NONE     = 0 ' 0 - None\r\nGlobal Const HORIZONTAL = 1 ' 1 - Horizontal\r\nGlobal Const VERTICAL = 2   ' 2 - Vertical\r\nGlobal Const BOTH = 3       ' 3 - Both"
  347.         },
  348.         {
  349.             "Group": "Constants",
  350.             "Item": "ScaleMode",
  351.             "Info": "' ScaleMode\r\nGlobal Const USER = 0        ' 0 - User\r\nGlobal Const TWIPS = 1       ' 1 - Twip\r\nGlobal Const POINTS = 2      ' 2 - Point\r\nGlobal Const PIXELS = 3      ' 3 - Pixel\r\nGlobal Const CHARACTERS = 4  ' 4 - Character\r\nGlobal Const INCHES = 5      ' 5 - Inch\r\nGlobal Const MILLIMETERS = 6 ' 6 - Millimeter\r\nGlobal Const CENTIMETERS = 7 ' 7 - Centimeter"
  352.         },
  353.         {
  354.             "Group": "Constants",
  355.             "Item": "QueryUnload",
  356.             "Info": "' QueryUnload\r\nGlobal Const FORM_CONTROLMENU = 0\r\nGlobal Const FORM_CODE = 1\r\nGlobal Const APP_WINDOWS = 2\r\nGlobal Const APP_TASKMANAGER = 3\r\nGlobal Const FORM_MDIFORM = 4"
  357.         },
  358.         {
  359.             "Group": "Constants",
  360.             "Item": "Shape",
  361.             "Info": "' Shape\r\nGlobal Const SHAPE_RECTANGLE = 0\r\nGlobal Const SHAPE_SQUARE = 1\r\nGlobal Const SHAPE_OVAL = 2\r\nGlobal Const SHAPE_CIRCLE = 3\r\nGlobal Const SHAPE_ROUNDED_RECTANGLE = 4\r\nGlobal Const SHAPE_ROUNDED_SQUARE = 5"
  362.         },
  363.         {
  364.             "Group": "Constants",
  365.             "Item": "WindowState",
  366.             "Info": "' WindowState\r\nGlobal Const NORMAL = 0    ' 0 - Normal\r\nGlobal Const MINIMIZED = 1 ' 1 - Minimized\r\nGlobal Const MAXIMIZED = 2 ' 2 - Maximized"
  367.         },
  368.         {
  369.             "Group": "Constants",
  370.             "Item": "Show",
  371.             "Info": "' Show parameters\r\nGlobal Const MODAL = 1\r\nGlobal Const MODELESS = 0"
  372.         },
  373.         {
  374.             "Group": "Constants",
  375.             "Item": "ZOrder",
  376.             "Info": "'ZOrder Method\r\nGlobal Const BRINGTOFRONT = 0\r\nGlobal Const SENDTOBACK = 1"
  377.         },
  378.         {
  379.             "Group": "Constants",
  380.             "Item": "Check Value",
  381.             "Info": "' Check Value\r\nGlobal Const UNCHECKED = 0 ' 0 - Unchecked\r\nGlobal Const CHECKED = 1   ' 1 - Checked\r\nGlobal Const GRAYED = 2    ' 2 - Grayed"
  382.         },
  383.         {
  384.             "Group": "Constants",
  385.             "Item": "Shift parameter masks",
  386.             "Info": "' Shift parameter masks\r\nGlobal Const SHIFT_MASK = 1\r\nGlobal Const CTRL_MASK = 2\r\nGlobal Const ALT_MASK = 4"
  387.         },
  388.         {
  389.             "Group": "Constants",
  390.             "Item": "Button parameter masks",
  391.             "Info": "' Button parameter masks\r\nGlobal Const LEFT_BUTTON = 1\r\nGlobal Const RIGHT_BUTTON = 2\r\nGlobal Const MIDDLE_BUTTON = 4"
  392.         },
  393.         {
  394.             "Group": "Constants",
  395.             "Item": "Grid",
  396.             "Info": "'Grid\r\n'ColAlignment,FixedAlignment Properties\r\nGlobal Const GRID_ALIGNLEFT = 0\r\nGlobal Const GRID_ALIGNRIGHT = 1\r\nGlobal Const GRID_ALIGNCENTER = 2\r\n\r\n'Fillstyle Property\r\nGlobal Const GRID_SINGLE = 0\r\nGlobal Const GRID_REPEAT = 1"
  397.         },
  398.         {
  399.             "Group": "Constants",
  400.             "Item": "Data control",
  401.             "Info": "'Data control\r\n'Error event Response arguments\r\nGlobal Const DATA_ERRCONTINUE = 0\r\nGlobal Const DATA_ERRDISPLAY = 1\r\n\r\n'Editmode property values\r\nGlobal Const DATA_EDITNONE = 0\r\nGlobal Const DATA_EDITMODE = 1\r\nGlobal Const DATA_EDITADD = 2\r\n\r\n' Options property values\r\nGlobal Const DATA_DENYWRITE = &H1\r\nGlobal Const DATA_DENYREAD = &H2\r\nGlobal Const DATA_READONLY = &H4\r\nGlobal Const DATA_APPENDONLY = &H8\r\nGlobal Const DATA_INCONSISTENT = &H10\r\nGlobal Const DATA_CONSISTENT = &H20\r\nGlobal Const DATA_SQLPASSTHROUGH = &H40\r\n\r\n'Validate event Action arguments\r\nGlobal Const DATA_ACTIONCANCEL = 0\r\nGlobal Const DATA_ACTIONMOVEFIRST = 1\r\nGlobal Const DATA_ACTIONMOVEPREVIOUS = 2\r\nGlobal Const DATA_ACTIONMOVENEXT = 3\r\nGlobal Const DATA_ACTIONMOVELAST = 4\r\nGlobal Const DATA_ACTIONADDNEW = 5\r\nGlobal Const DATA_ACTIONUPDATE = 6\r\nGlobal Const DATA_ACTIONDELETE = 7\r\nGlobal Const DATA_ACTIONFIND = 8\r\nGlobal Const DATA_ACTIONBOOKMARK = 9\r\nGlobal Const DATA_ACTIONCLOSE = 10\r\nGlobal Const DATA_ACTIONUNLOAD = 11"
  402.         },
  403.         {
  404.             "Group": "Constants",
  405.             "Item": "3D",
  406.             "Info": "'-------------------------------------------------------------------\r\n'3D Controls\r\n'-------------------------------------------------------------------\r\n'Alignment (Check Box)\r\nGlobal Const SSCB_TEXT_RIGHT = 0         '0 - Text to the right\r\nGlobal Const SSCB_TEXT_LEFT = 1          '1 - Text to the left\r\n\r\n'Alignment (Option Button)\r\nGlobal Const SSOB_TEXT_RIGHT = 0         '0 - Text to the right\r\nGlobal Const SSOB_TEXT_LEFT = 1          '1 - Text to the left\r\n\r\n'Alignment (Frame)\r\nGlobal Const SSFR_LEFT_JUSTIFY = 0       '0 - Left justify text\r\nGlobal Const SSFR_RIGHT_JUSTIFY = 1      '1 - Right justify text\r\nGlobal Const SSFR_CENTER = 2             '2 - Center text\r\n\r\n'Alignment (Panel)\r\nGlobal Const SSPN_LEFT_TOP = 0           '0 - Text to left and top\r\nGlobal Const SSPN_LEFT_MIDDLE = 1        '1 - Text to left and middle\r\nGlobal Const SSPN_LEFT_BOTTOM = 2        '2 - Text to left and bottom\r\nGlobal Const SSPN_RIGHT_TOP = 3          '3 - Text to right and top\r\nGlobal Const SSPN_RIGHT_MIDDLE = 4       '4 - Text to right and middle\r\nGlobal Const SSPN_RIGHT_BOTTOM = 5       '5 - Text to right and bottom\r\nGlobal Const SSPN_CENTER_TOP = 6         '6 - Text to center and top\r\nGlobal Const SSPN_CENTER_MIDDLE = 7      '7 - Text to center and middle\r\nGlobal Const SSPN_CENTER_BOTTOM = 8      '8 - Text to center and bottom\r\n\r\n'Autosize (Command Button)\r\nGlobal Const SS_AUTOSIZE_NONE = 0        '0 - No Autosizing\r\nGlobal Const SSPB_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button\r\nGlobal Const SSPB_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture\r\n\r\n'Autosize (Ribbon Button)\r\n'Global Const SS_AUTOSIZE_NONE      = 0  '0 - No Autosizing\r\nGlobal Const SSRI_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button\r\nGlobal Const SSRI_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture\r\n\r\n'Autosize (Panel)\r\n'Global Const SS_AUTOSIZE_NONE    = 0    '0 - No Autosizing\r\nGlobal Const SSPN_AUTOSIZE_WIDTH = 1     '1 - Autosize Panel width to Caption\r\nGlobal Const SSPN_AUTOSIZE_HEIGHT = 2    '2 - Autosize Panel height to Caption\r\nGlobal Const SSPN_AUTOSIZE_CHILD = 3     '3 - Autosize Child to Panel\r\n\r\n'BevelInner (Panel)\r\nGlobal Const SS_BEVELINNER_NONE = 0      '0 - No Inner Bevel\r\nGlobal Const SS_BEVELINNER_INSET = 1     '1 - Inset Inner Bevel\r\nGlobal Const SS_BEVELINNER_RAISED = 2    '2 - Raised Inner Bevel\r\n\r\n'BevelOuter (Panel)\r\nGlobal Const SS_BEVELOUTER_NONE = 0      '0 - No Outer Bevel\r\nGlobal Const SS_BEVELOUTER_INSET = 1     '1 - Inset Outer Bevel\r\nGlobal Const SS_BEVELOUTER_RAISED = 2    '2 - Raised Outer Bevel\r\n\r\n'FloodType (Panel)\r\nGlobal Const SS_FLOODTYPE_NONE = 0       '0 - No flood\r\nGlobal Const SS_FLOODTYPE_L_TO_R = 1     '1 - Left to light\r\nGlobal Const SS_FLOODTYPE_R_TO_L = 2     '2 - Right to left\r\nGlobal Const SS_FLOODTYPE_T_TO_B = 3     '3 - Top to bottom\r\nGlobal Const SS_FLOODTYPE_B_TO_T = 4     '4 - Bottom to top\r\nGlobal Const SS_FLOODTYPE_CIRCLE = 5     '5 - Widening circle\r\n\r\n'Font3D (Panel, Command Button, Option Button, Check Box, Frame)\r\nGlobal Const SS_FONT3D_NONE = 0          '0 - No 3-D text\r\nGlobal Const SS_FONT3D_RAISED_LIGHT = 1  '1 - Raised with light shading\r\nGlobal Const SS_FONT3D_RAISED_HEAVY = 2  '2 - Raised with heavy shading\r\nGlobal Const SS_FONT3D_INSET_LIGHT = 3   '3 - Inset with light shading\r\nGlobal Const SS_FONT3D_INSET_HEAVY = 4   '4 - Inset with heavy shading\r\n\r\n'PictureDnChange (Ribbon Button)\r\nGlobal Const SS_PICDN_NOCHANGE = 0       '0 - Use 'Up'bitmap with no change\r\nGlobal Const SS_PICDN_DITHER = 1         '1 - Dither 'Up'bitmap\r\nGlobal Const SS_PICDN_INVERT = 2         '2 - Invert 'Up'bitmap\r\n\r\n'ShadowColor (Panel, Frame)\r\nGlobal Const SS_SHADOW_DARKGREY = 0      '0 - Dark grey shadow\r\nGlobal Const SS_SHADOW_BLACK = 1         '1 - Black shadow\r\n\r\n'ShadowStyle (Frame)\r\nGlobal Const SS_SHADOW_INSET = 0         '0 - Shadow inset\r\nGlobal Const SS_SHADOW_RAISED = 1        '1 - Shadow raised"
  407.         },
  408.         {
  409.             "Group": "INI Files",
  410.             "Item": "(General)",
  411.             "Info": "Option Explicit\r\n\r\nDeclare Function GetPrivateProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnedString$, ByVal nSize%, ByVal lpFileName$)\r\nDeclare Function WritePrivateProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpString$, ByVal lplFileName$)\r\nDeclare Function GetPrivateProfileInt% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal nDefault%, ByVal lpFileName$)\r\nDeclare Function GetProfileInt% Lib \"Kernel\" (ByVal lpAppName$, ByVal lpKeyName$, ByVal nDefault%)\r\nDeclare Function GetProfileString% Lib \"Kernel\" (ByVal lpAppName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnedString$, ByVal nSize%)\r\nDeclare Function WriteProfileString% Lib \"Kernel\" (ByVal lpApplicationName$, ByVal lpKeyName$, ByVal lpString$)\r\nDeclare Function GetWindowsDirectory% Lib \"Kernel\" (ByVal lpBuffer$, ByVal nSize%)\r\nDeclare Function GetSystemDirectory% Lib \"Kernel\" (ByVal lpBuffer$, ByVal nSize%)"
  412.         },
  413.         {
  414.             "Group": "INI Files",
  415.             "Item": "GetINIString$ ",
  416.             "Info": "Function GetINIString$ (strFileName$, strSectionName$, strKeyName$, ByVal strDefault$)\r\n    'File, Section, Key Name\r\n    Dim Temp As String * 255\r\n    Dim intLen%, X%, intRes%\r\n    Dim Default$, R$\r\n    Default = \"*****\"\r\n    intLen = 255\r\n    intRes = GetPrivateProfileString(strSectionName, strKeyName, Default, Temp, intLen, strFileName)\r\n    If Left$(Temp, 5) = \"*****\" Then\r\n        Select Case strDefault\r\n            Case \"\"\r\n                'No default was supplied\r\n                Do\r\n                    R = InputBox((strSectionName & \" \" & strKeyName & \" Not Found - Please Enter\"), \"File Error\")\r\n                Loop While R <> \"\"\r\n                WriteINIString strFileName, strSectionName, strKeyName, R\r\n                GetINIString = GetINIString(strFileName, strSectionName, strKeyName, \"\")\r\n            Case Chr$(255)\r\n                'Don't return anything if it is not found\r\n                GetINIString = \"\"\r\n            Case Else\r\n                'Write in the default and return it\r\n                WriteINIString strFileName, strSectionName, strKeyName, strDefault\r\n                GetINIString = GetINIString(strFileName, strSectionName, strKeyName, strDefault)\r\n        End Select\r\n    Else\r\n        For X = 1 To intLen\r\n            If Asc(Mid$(Temp, X, 1)) = 0 Then Exit For\r\n        Next X\r\n        GetINIString = Left$(Temp, X - 1)\r\n    End If\r\nEnd Function"
  417.         },
  418.         {
  419.             "Group": "INI Files",
  420.             "Item": "SystemDirectory$ ",
  421.             "Info": "Function SystemDirectory$ ()\r\n'Returns the Windows system directory\r\nStatic intSize%, intRes%\r\nStatic strTemp As String * 144\r\n    \r\nintSize = 144\r\nintRes = GetSystemDirectory(strTemp, 144)\r\nSystemDirectory = Left$(strTemp, intRes)\r\n\r\nEnd Function"
  422.         },
  423.         {
  424.             "Group": "INI Files",
  425.             "Item": "WindowsDirectory$ ",
  426.             "Info": "Function WindowsDirectory$ ()\r\n'Returns the Windows directory\r\nStatic intSize%, intRes%\r\nStatic strTemp As String * 144\r\n\r\nintSize = 144\r\nintRes = GetWindowsDirectory(strTemp, 144)\r\nWindowsDirectory = Left$(strTemp, intRes)\r\n\r\nEnd Function"
  427.         },
  428.         {
  429.             "Group": "INI Files",
  430.             "Item": "GetINIInteger% ",
  431.             "Info": "Function GetINIInteger% (strFileName$, strSectionName$, strKeyName$, intDefault%)\r\n    'File, Section, Key Name\r\n    Static intDefault2%, intRes%\r\n    Static R$\r\n    intDefault2 = -4444\r\n    intRes = GetPrivateProfileInt(strSectionName, strKeyName, intDefault2, strFileName)\r\n    If intRes = intDefault2 Then\r\n        If intDefault = -4444 Then\r\n            R$ = \"\"\r\n            Do\r\n                R = InputBox((strSectionName & \" \" & strKeyName & \" Not Found - Please Enter\"), \"File Error\")\r\n            Loop While R <> \"\"\r\n            WriteINIString strFileName, strSectionName, strKeyName, R\r\n            GetINIInteger = GetINIInteger(strFileName, strSectionName, strKeyName, -4444)\r\n        Else\r\n            WriteINIString strFileName, strSectionName, strKeyName, Format$(intDefault)\r\n            GetINIInteger = GetINIInteger(strFileName, strSectionName, strKeyName, intDefault)\r\n        End If\r\n    Else\r\n        GetINIInteger = intRes\r\n    End If\r\nEnd Function"
  432.         },
  433.         {
  434.             "Group": "INI Files",
  435.             "Item": "WriteINIString ",
  436.             "Info": "Sub WriteINIString (ByVal strFileName$, ByVal strSectionName$, ByVal strKeyName$, ByVal NewString$)\r\n'Writes a string into the given header and section of the file\r\nStatic Res%\r\n    \r\nRes = WritePrivateProfileString(strSectionName, strKeyName, NewString, strFileName)\r\n\r\nEnd Sub"
  437.         },
  438.         {
  439.             "Group": "List Box",
  440.             "Item": "Remove By Name",
  441.             "Info": "Sub cLstRemoveByName (lstIn as Control, strDelete$)\r\n\r\nStatic intCount%\r\n\r\nFor intCount = 0 to lstIn.ListCount - 1\r\n    If lstIn.List(intCount) = strDelete then\r\n        lstIn.RemoveItem intCount\r\n    End If\r\nNext intCount\r\n\r\nEnd Sub"
  442.         },
  443.         {
  444.             "Group": "Text Replace",
  445.             "Item": "(General)",
  446.             "Info": "Option Explicit\r\n\r\nGlobal gstrFind$    'Keep track of last find done\r\nGlobal gtxtIn As Control\r\nGlobal gflgMatchCase% 'Remembers if Match Case was clicked"
  447.         },
  448.         {
  449.             "Group": "Text Replace",
  450.             "Item": "ReplaceAllText% ",
  451.             "Info": "Function ReplaceAllText% (txtIn As Control, ByVal strFind$, ByVal strReplace$, ByVal flgMatchCase%)\r\n'Replaces all text in a control and returns the number of replacements made\r\n\r\nStatic intStart%, intCount%\r\n\r\ngstrFind = strFind\r\nintStart = 1\r\nintCount = 0\r\n\r\nDo\r\n    If InStr(intStart, txtIn.Text, gstrFind, IIf(flgMatchCase = 0, 1, 0)) > 0 Then\r\n        txtIn.SelStart = InStr(intStart, txtIn.Text, gstrFind, IIf(flgMatchCase = 0, 1, 0)) - 1\r\n        txtIn.SelLength = Len(gstrFind)\r\n        txtIn.SelText = strReplace\r\n        intStart = txtIn.SelStart + Len(strReplace)\r\n        intCount = intCount + 1\r\n    Else\r\n        Exit Do\r\n    End If\r\nLoop\r\n\r\nReplaceAllText = intCount\r\n\r\nEnd Function"
  452.         },
  453.         {
  454.             "Group": "Text Replace",
  455.             "Item": "ReplaceOneText% ",
  456.             "Info": "Function ReplaceOneText% (txtIn As Control, ByVal strFind$, ByVal strReplace$, ByVal flgMatchCase%)\r\n'Replaces one item in the given text box and returns true if it found anything\r\n\r\nStatic intStart%\r\n\r\ngstrFind = strFind\r\nIf txtIn.SelStart < 1 Then\r\n    intStart = 1\r\nElse\r\n    intStart = txtIn.SelStart\r\nEnd If\r\n\r\nIf InStr(intStart, txtIn.Text, gstrFind, IIf(flgMatchCase = 0, 1, 0)) > 0 Then\r\n    txtIn.SelStart = InStr(intStart, txtIn.Text, gstrFind, IIf(flgMatchCase = 0, 1, 0)) - 1\r\n    txtIn.SelLength = Len(gstrFind)\r\n    txtIn.SelText = strReplace\r\n    txtIn.SelStart = txtIn.SelStart + Len(strReplace)\r\n    ReplaceOneText = True\r\nElse\r\n    ReplaceOneText = False\r\nEnd If\r\n\r\nEnd Function"
  457.         },
  458.         {
  459.             "Group": "Text Replace",
  460.             "Item": "ReplaceText ",
  461.             "Info": "Sub ReplaceText (txtIn As Control)\r\n'This is the call from programs to access the replace form\r\n\r\nSet gtxtIn = txtIn\r\n\r\nfrmReplace!txtFind = txtIn.SelText\r\nfrmReplace!txtFind.SelStart = 0\r\nfrmReplace!txtFind.SelLength = Len(txtIn.SelText)\r\nfrmReplace.Show 1\r\n\r\nEnd Sub"
  462.         },
  463.         {
  464.             "Group": "String",
  465.             "Item": "ASCIIInvert",
  466.             "Info": "Function ASCIIInvert$ (ByVal strIn$)\r\n\r\nStatic intCount%, strTemp$\r\n\r\nstrTemp = \"\"\r\nFor intCount = 1 To Len(strIn)\r\n    strTemp = strTemp + Chr$(255 - Asc(Mid$(strIn, intCount, 1)))\r\nNext intCount\r\nASCIIInvert = strTemp\r\nstrTemp = \"\"\r\n\r\nEnd Function"
  467.         },
  468.         {
  469.             "Group": "Form",
  470.             "Item": "CenterForm",
  471.             "Info": "Sub CenterForm (frm1 As Form)\r\n    \r\nfrm1.Move Screen.Width / 2 - frm1.Width / 2, Screen.Height / 2 - frm1.Height / 2\r\n\r\nEnd Sub"
  472.         },
  473.         {
  474.             "Group": "Form",
  475.             "Item": "CenterOnForm",
  476.             "Info": "Sub CenterOnForm (frm1 As Form, frm2 As Form)\r\n    \r\nfrm1.Move frm2.Width / 2 - frm1.Width / 2 + frm2.Left, frm2.Height / 2 - frm1.Height / 2 + frm2.Top\r\n\r\nEnd Sub"
  477.         },
  478.         {
  479.             "Group": "API",
  480.             "Item": "Exit Windows",
  481.             "Info": "'API Declaration\r\nDeclare Function ExitWindows% Lib \"User\" (ByVal dwReserved&, ByVal wReturnCode%)\r\n\r\n'Call from procedure\r\niRet% = ExitWindows(66, 66)"
  482.         },
  483.         {
  484.             "Group": "API",
  485.             "Item": "Shell to DOS",
  486.             "Info": "Function ShellToDOS& (strCommand$)\r\n\r\nStatic iRet%, iRet2%\r\n\r\niRet% = Shell(strCommand$)\r\nWhile GetModuleUsage(iRet%)\t'checks if shell is still active\r\n    iRet2% = DoEvents()\r\nWend\r\n\r\nShellToDOS = iRet%\t'returns task ID or error code\r\n\r\nEnd Function"
  487.         },
  488.         {
  489.             "Group": "Text Box",
  490.             "Item": "GetNumLines",
  491.             "Info": "Function GetNumLines% (txtIn as Control)\r\n\r\nConst EM_GETLINECOUNT = &H40A\r\nGetNumLines = SendMessage(txtIn.hWnd, EM_GETLINECOUNT, 0, 0)\r\n\r\nEnd Function"
  492.         },
  493.         {
  494.             "Group": "API",
  495.             "Item": "Get Registered Name",
  496.             "Info": "Declare Function GetModuleHandle% Lib \"Kernel\" (ByVal Module$)\r\nDeclare Function LoadString% Lib \"User\" (ByVal hInst%, ByVal wID%, ByVal buf As Any, ByVal size%)\r\n\r\nSub GetRegisteredInfo (strName$, strCompany$)\r\n'Returns the registered user name and company name of the Windows system\r\n    Static hInst%, iLength%\r\n    Static strTemp$\r\n\r\n    hInst = GetModuleHandle(\"user.exe\")\r\n\r\n    'Get user name\r\n    strTemp = Space$(256)\r\n    iLength = LoadString(hInst, 514, strTemp, Len(strTemp))\r\n    txtName.Text = Left$(strTemp, iLength)\r\n\r\n    'Get organization\r\n    strTemp = Space$(256)\r\n    iLength = LoadString(hInst, 515, strTemp, Len(strTemp))\r\n    txtCompany.Text = Left$(strTemp, iLength)\r\nEnd Sub"
  497.         },
  498.         {
  499.             "Group": "API",
  500.             "Item": "Always on top",
  501.             "Info": "Sub AlwaysOnTop (frmIn As Form, flgOnTop%)\r\n\r\nIf flgOnTop Then\r\n    SetWindowPos frmIn.hWnd, -1, 0, 0, 0, 0, &H1 Or &H2\r\nElse\r\n    SetWindowPos frmIn.hWnd, -2, 0, 0, 0, 0, &H1 Or &H2\r\nEnd If\r\n\r\nEnd Sub"
  502.         }
  503.     ]
  504. }